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 19
19
v-on =" $listeners"
20
20
:id =" safeId"
21
21
:class =" inputClasses"
22
- @input =" onSelect($event)"
22
+ @change =" onSelect($event)"
23
23
>
24
24
<option
25
25
v-if =" placeholder"
Original file line number Diff line number Diff line change @@ -68,17 +68,17 @@ describe(ComponentName, () => {
68
68
it ( 'emit update event' , ( ) => {
69
69
const select = customWrapper . find ( 'select' )
70
70
select . element . value = 'Option 2'
71
- select . trigger ( 'input ' )
71
+ select . trigger ( 'change ' )
72
72
expect ( customWrapper . emitted ( ) [ 'update:value' ] ) . toBeTruthy ( )
73
73
const select2 = customSimpleWrapper . find ( 'select' )
74
74
select2 . element . value = 'Option 3'
75
- select2 . trigger ( 'input ' )
75
+ select2 . trigger ( 'change ' )
76
76
expect ( customSimpleWrapper . emitted ( ) [ 'update:value' ] ) . toBeTruthy ( )
77
77
} )
78
78
it ( 'not emit update event on multiple select' , ( ) => {
79
79
const select = wrapperMultiple . find ( 'select' )
80
80
select . element . value = 'Option 2'
81
- select . trigger ( 'input ' )
81
+ select . trigger ( 'change ' )
82
82
expect ( wrapperMultiple . emitted ( ) [ 'update:value' ] ) . not . toBeTruthy ( )
83
83
} )
84
84
} )
You can’t perform that action at this time.
0 commit comments