Skip to content

Commit

Permalink
Fix double click event for CheckBox(Button) and Radio(Button) (#1290)
Browse files Browse the repository at this point in the history
* Fix click event triggered twice for Checkbox, CheckboxButton and Radio

* Fix click event triggered twice for RadioButton
  • Loading branch information
yxngl authored and jtommy committed Mar 20, 2019
1 parent f78620a commit 390ed16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/checkbox/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
tabindex="-1"
:indeterminate.prop="indeterminate"
type="checkbox"
@click.stop
:disabled="disabled"
:required="required"
:name="name"
Expand Down
1 change: 1 addition & 0 deletions src/components/checkbox/CheckboxButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
v-model="computedValue"
tabindex="-1"
type="checkbox"
@click.stop
:disabled="disabled"
:required="required"
:name="name"
Expand Down
1 change: 1 addition & 0 deletions src/components/radio/Radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
v-model="computedValue"
tabindex="-1"
type="radio"
@click.stop
:disabled="disabled"
:required="required"
:name="name"
Expand Down
1 change: 1 addition & 0 deletions src/components/radio/RadioButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
v-model="computedValue"
tabindex="-1"
type="radio"
@click.stop
:disabled="disabled"
:required="required"
:name="name"
Expand Down

0 comments on commit 390ed16

Please sign in to comment.