From 4c84839a0183756b9f8df8674aace8cd40e44dcd Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 19 Dec 2023 13:09:11 +0100 Subject: [PATCH] fix(Toggle): add missing `change` event Fixes #1113 --- src/runtime/components/forms/Toggle.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/forms/Toggle.vue b/src/runtime/components/forms/Toggle.vue index 718ab1ed9c..c0f3a8db2e 100644 --- a/src/runtime/components/forms/Toggle.vue +++ b/src/runtime/components/forms/Toggle.vue @@ -89,7 +89,7 @@ export default defineComponent({ default: () => ({}) } }, - emits: ['update:modelValue'], + emits: ['update:modelValue', 'change'], setup (props, { emit }) { const { ui, attrs } = useUI('toggle', toRef(props, 'ui'), config)