We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db9c20f commit 61fdc6fCopy full SHA for 61fdc6f
packages/ui/src/composables/fabrics/useStatefulControl.ts
@@ -31,7 +31,7 @@ export const useStatefulControl = <V>(
31
modelValue: V,
32
stateful: boolean,
33
},
34
- emit: (eventName: 'update:modelValue') => void,
+ emit: (eventName: 'update:modelValue', v: V) => void,
35
) => {
36
const isUserProvidedProp = useIsUserProvidedProp('modelValue')
37
@@ -54,7 +54,7 @@ export const useStatefulControl = <V>(
54
55
set (value: V) {
56
state.value = value
57
- emit('update:modelValue')
+ emit('update:modelValue', value)
58
59
}) as StatefulValue<V>
60
0 commit comments