-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Select Console Error: Select elements must be either controlled or uncontrolled #98
Comments
Hey @cgenevier, thanks for the issue. The warning shouldn’t be leading to any actual errors on the page, which is good. If you want to fully get rid of it, you must manage the |
Hi @lemonmade, Thanks for the reply! I replaced the code with the following and am still getting the console error:
Noted that it doesn't cause any errors on the page, which is great, but it'd be nice to clean up the console from warnings too. Thanks so much in advance! |
Does |
No, |
This error comes from source code of Select component (https://github.com/Shopify/polaris/blob/master/src/components/Select/Select.tsx) The defaultValue is set on line 101: When I comment the line 101 (defaultValue={PLACEHOLDER_VALUE}) I dont't get the error. |
This is an issue with how we are doing the placeholder value. We'll take a look at this and release a fix soon. |
Any update on this? |
We've got a fix merged in, and we plan on doing a release in the next couple days. |
This was resolved in a previous release. |
yeah, simple delete |
Issue summary
When I add a Select component to my page and include a value, I receive the following console warning.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: