Skip to content

Commit de16c1b

Browse files
fix: added emits property to Vue components (#199)
1 parent 17a8535 commit de16c1b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/@headlessui-vue/src/components/listbox/listbox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ function useListboxContext(component: string) {
7171

7272
export const Listbox = defineComponent({
7373
name: 'Listbox',
74+
emits: ['update:modelValue'],
7475
props: {
7576
as: { type: [Object, String], default: 'template' },
7677
modelValue: { type: [Object, String, Number, Boolean], default: null },

packages/@headlessui-vue/src/components/switch/switch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const SwitchGroup = defineComponent({
4848

4949
export const Switch = defineComponent({
5050
name: 'Switch',
51+
emits: ['update:modelValue'],
5152
props: {
5253
as: { type: [Object, String], default: 'button' },
5354
modelValue: { type: [Object, Boolean], default: null },

0 commit comments

Comments
 (0)