Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wz-select warning when using selected inside option #230

Open
renemichel opened this issue Feb 18, 2019 · 0 comments
Open

wz-select warning when using selected inside option #230

renemichel opened this issue Feb 18, 2019 · 0 comments

Comments

@renemichel
Copy link

I get this error when using wz-select:

Warning: Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.
          in option 
          in wz-select 

According to the examples, to set a selected option you have to use the prop selected like this:
<option selected value="something">Test</option>

But this way of selecting an option is logging a warning in the console.

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

No branches or pull requests

1 participant