vue-checkbox-radio
vue-checkbox-radio copied to clipboard
why not use '==' in the return code in state()?
vue-checkbox-radio/src/components/Radio.vue
state() {
if (this.modelValue === undefined) {
return this.checked;
}
return this.modelValue === this.value;
}
},
In my project, the modelValue sometimes is INT type, and here the state() will return false :(
so, why not use '==' in the return code in state()?