Skip to content

Commit 61fdc6f

Browse files
committed
fix(useStatefulControl): update model-value in control
1 parent db9c20f commit 61fdc6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui/src/composables/fabrics/useStatefulControl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const useStatefulControl = <V>(
3131
modelValue: V,
3232
stateful: boolean,
3333
},
34-
emit: (eventName: 'update:modelValue') => void,
34+
emit: (eventName: 'update:modelValue', v: V) => void,
3535
) => {
3636
const isUserProvidedProp = useIsUserProvidedProp('modelValue')
3737

@@ -54,7 +54,7 @@ export const useStatefulControl = <V>(
5454
},
5555
set (value: V) {
5656
state.value = value
57-
emit('update:modelValue')
57+
emit('update:modelValue', value)
5858
},
5959
}) as StatefulValue<V>
6060

0 commit comments

Comments
 (0)