File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1919 v-on =" $listeners"
2020 :id =" safeId"
2121 :class =" inputClasses"
22- @input =" onSelect($event)"
22+ @change =" onSelect($event)"
2323 >
2424 <option
2525 v-if =" placeholder"
Original file line number Diff line number Diff line change @@ -68,17 +68,17 @@ describe(ComponentName, () => {
6868 it ( 'emit update event' , ( ) => {
6969 const select = customWrapper . find ( 'select' )
7070 select . element . value = 'Option 2'
71- select . trigger ( 'input ' )
71+ select . trigger ( 'change ' )
7272 expect ( customWrapper . emitted ( ) [ 'update:value' ] ) . toBeTruthy ( )
7373 const select2 = customSimpleWrapper . find ( 'select' )
7474 select2 . element . value = 'Option 3'
75- select2 . trigger ( 'input ' )
75+ select2 . trigger ( 'change ' )
7676 expect ( customSimpleWrapper . emitted ( ) [ 'update:value' ] ) . toBeTruthy ( )
7777 } )
7878 it ( 'not emit update event on multiple select' , ( ) => {
7979 const select = wrapperMultiple . find ( 'select' )
8080 select . element . value = 'Option 2'
81- select . trigger ( 'input ' )
81+ select . trigger ( 'change ' )
8282 expect ( wrapperMultiple . emitted ( ) [ 'update:value' ] ) . not . toBeTruthy ( )
8383 } )
8484} )
You can’t perform that action at this time.
0 commit comments