Skip to content

Commit

Permalink
fix: avoid emit update:checked twice (#3866)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkwolf authored Mar 31, 2021
1 parent db2e359 commit 160f768
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/vc-checkbox/src/Checkbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export default defineComponent({
if ('checked' in props) {
this.$refs.input.checked = props.checked;
}
this.__emit('update:checked', eventObj);
this.__emit('change', eventObj);
this.eventShiftKey = false;
},
Expand Down

0 comments on commit 160f768

Please sign in to comment.