-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[TextField] Robust unique id - warning is not clear #4659
Comments
Just found out that the same warning shows up as soon as you start using the DatePicker |
Just started using this library, and we're seeing the same warning. We're using the |
Same when trying to use AutoComplete set up as in the documentation http://www.material-ui.com/#/components/auto-complete |
Same here :( |
|
Great find @raycursif! The issue is, some components like DatePicker only use update |
I have this issue but I am not using the TimePicker. |
It's an old post, but i thought a fix is simple: Although the message is confusing, this is relevant to DatePicker and TimePicker Just add a unique id .... id='uniqueid' ... |
We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. It's fixed. |
Thanks @jeveloper Issue FIXED!!! after declaration of id in DatePicker.
|
Problem description
I just started getting warnings: Warning: We don't have enough information to build a robust unique id for the TextField component. Please provide an id or a name.
The problem with this warning is that it does not provide much information. In stack trace is TextField - but I use only 3 TextFields in app and all of them have id provided.
So it means that some others components from material-ui are using the TextFields and they do not provide id to them.
Steps to reproduce
Versions
Description
At least it should be specified in docs that autocomplete have to have id otherwise you will get an warning
Images & references
The text was updated successfully, but these errors were encountered: