vue-checkbox-radio icon indicating copy to clipboard operation
vue-checkbox-radio copied to clipboard

why not use '==' in the return code in state()?

Open wanyaxing opened this issue 7 years ago • 0 comments

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()?

wanyaxing avatar Feb 02 '18 10:02 wanyaxing