Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

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

Open
wanyaxing opened this issue Feb 2, 2018 · 0 comments
Open

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

wanyaxing opened this issue Feb 2, 2018 · 0 comments

Comments

@wanyaxing
Copy link

wanyaxing commented Feb 2, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant