We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6243e1d commit e76a41fCopy full SHA for e76a41f
components/checkbox/Checkbox.jsx
@@ -54,13 +54,12 @@ export default {
54
handleChange (event) {
55
const targetChecked = event.target.checked
56
this.$emit('input', targetChecked)
57
- const { name, value, checked, checkboxGroupContext } = this
+ const { checked, checkboxGroupContext } = this
58
if ((checked === undefined && !checkboxGroupContext) || (checkboxGroupContext && checkboxGroupContext.sValue === undefined)) {
59
this.sChecked = targetChecked
60
}
61
const target = {
62
- name,
63
- value,
+ ...this.$props,
64
checked: targetChecked,
65
66
this.$emit('change', {
0 commit comments