File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/anu-vue/src/components/select Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ const props = defineProps(defu({
24
24
}, baseInputProps ))
25
25
26
26
const emit = defineEmits <{
27
-
28
- // (e: 'input', value: (ExtractPropTypes<typeof props>)['modelValue']): void
27
+ ( e : ' change ' , value : ( ExtractPropTypes < typeof props >)[ ' modelValue ' ]) : void
28
+ (e : ' input' , value : (ExtractPropTypes <typeof props >)[' modelValue' ]): void
29
29
(e : ' update:modelValue' , value : (ExtractPropTypes <typeof props >)[' modelValue' ]): void
30
30
}>()
31
31
@@ -108,8 +108,8 @@ const optionClasses = 'a-select-option states before:transition-none cursor-poin
108
108
const handleOptionClick = (option : SelectOption ) => {
109
109
const value = isObjectOption (option ) && ! props .emitObject ? (option as ObjectOption ).value : option
110
110
111
- // Do we really need this emit? 🤔 => I guess no because now on all events get attached to input
112
- // emit('input', value)
111
+ emit ( ' change ' , value )
112
+ emit (' input' , value )
113
113
emit (' update:modelValue' , value )
114
114
}
115
115
const closeOptions = (event : MouseEvent ) => {
You can’t perform that action at this time.
0 commit comments