-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Warning: Use the defaultValue
or value
props on <select> instead of setting selected
on <option>
#845
Comments
Annnnndddd I'm an idiot. Apologies, issues were my shitty existing select causing the stated error and not referencing the css file correctly for the weird display issue. |
Warning: Use the |
@react1130 From the code you provided I can see that you problem has nothing to do with this library. You are using the standard React implementation of the html select input. Please try searching for a more related information source revolving around your error. StackOverflow might help. |
Hi man, component looks great but I can't get even a simple test case to run.
Test code:
Renders the first option on one line (as text), then a tiny input (1 character) below it with an x next to it, and gives the title warning in the console. Is this to do with the 1.0.0 changes? NPM installed 0.9.1, dependencies seemed to resolve fine (they're sitting in my node_modules, anyway). Packages.json only includes 'react-select' as a dependency, not the other two.
Any ideas?
The text was updated successfully, but these errors were encountered: