Skip to content

Commit

Permalink
fix(checkbox): [checkbox] fixed change event bubbling caused it to be…
Browse files Browse the repository at this point in the history
… triggered twice
  • Loading branch information
zzcr committed Oct 25, 2024
1 parent 365c7e8 commit 0540231
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/vue/src/checkbox/src/mobile-first.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
:true-value="trueLabel"
:false-value="falseLabel"
v-model="state.model"
@change="handleChange"
@change.stop="handleChange"
@focus="state.focus = true"
@blur="state.focus = false"
@click.stop
Expand All @@ -93,7 +93,7 @@
:value="label"
:name="name"
v-model="state.model"
@change="handleChange"
@change.stop="handleChange"
@focus="state.focus = true"
@blur="state.focus = false"
@click.stop
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/checkbox/src/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
:true-value="trueLabel"
:false-value="falseLabel"
v-model="state.model"
@change="handleChange"
@change.stop="handleChange"
@focus="state.focus = true"
@blur="state.focus = false"
/>
Expand All @@ -51,7 +51,7 @@
:value="label"
:name="name"
v-model="state.model"
@change="handleChange"
@change.stop="handleChange"
@focus="state.focus = true"
@blur="state.focus = false"
/>
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/checkbox/src/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
:true-value="trueLabel"
:false-value="falseLabel"
v-model="state.model"
@change="handleChange"
@change.stop="handleChange"
@focus="state.focus = true"
@blur="state.focus = false"
@click.stop
Expand All @@ -62,7 +62,7 @@
:value="label"
:name="name"
v-model="state.model"
@change="handleChange"
@change.stop="handleChange"
@focus="state.focus = true"
@blur="state.focus = false"
@click.stop
Expand Down

0 comments on commit 0540231

Please sign in to comment.