Skip to content

Commit

Permalink
fix: added emits property to Vue components (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-kuendig authored Jan 22, 2021
1 parent 17a8535 commit de16c1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/@headlessui-vue/src/components/listbox/listbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
1 change: 1 addition & 0 deletions packages/@headlessui-vue/src/components/switch/switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit de16c1b

Please sign in to comment.