diff --git a/packages/@headlessui-vue/src/components/listbox/listbox.ts b/packages/@headlessui-vue/src/components/listbox/listbox.ts index 6e79ab2c5d..a594849a0c 100644 --- a/packages/@headlessui-vue/src/components/listbox/listbox.ts +++ b/packages/@headlessui-vue/src/components/listbox/listbox.ts @@ -71,6 +71,7 @@ function useListboxContext(component: string) { export const Listbox = defineComponent({ name: 'Listbox', + emits: ['update:modelValue'], props: { as: { type: [Object, String], default: 'template' }, modelValue: { type: [Object, String, Number, Boolean], default: null }, diff --git a/packages/@headlessui-vue/src/components/switch/switch.ts b/packages/@headlessui-vue/src/components/switch/switch.ts index 7b07a8b17a..037f0550a3 100644 --- a/packages/@headlessui-vue/src/components/switch/switch.ts +++ b/packages/@headlessui-vue/src/components/switch/switch.ts @@ -48,6 +48,7 @@ export const SwitchGroup = defineComponent({ export const Switch = defineComponent({ name: 'Switch', + emits: ['update:modelValue'], props: { as: { type: [Object, String], default: 'button' }, modelValue: { type: [Object, Boolean], default: null },