Skip to content

Commit 85b9775

Browse files
committed
fix: correct change event emission in toggle function for switch component
1 parent 78cd035 commit 85b9775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/Switch/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const emits = defineEmits(['change'])
1818
const toggle = () => {
1919
if (props.disabled) return
2020
model.value = !model.value
21-
emits('change', !model.value)
21+
emits('change', model.value)
2222
}
2323
</script>
2424

0 commit comments

Comments
 (0)