Skip to content

Commit

Permalink
fix(kinputswitch): fix events race condition (#2523)
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM authored Nov 21, 2024
1 parent 56dfc3c commit 6e3626f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/KInputSwitch/KInputSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ const propagateInputEvent = (event: Event): void => {
const handleChange = (event: Event): void => {
if (props.modelValue !== (event.target as HTMLInputElement).checked) {
emit('update:modelValue', (event.target as HTMLInputElement).checked)
emit('change', (event.target as HTMLInputElement).checked)
emit('input', (event.target as HTMLInputElement).checked)
emit('update:modelValue', (event.target as HTMLInputElement).checked)
}
}
</script>
Expand Down

0 comments on commit 6e3626f

Please sign in to comment.