-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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] Floating Label Text overlaps the inputted text when the textfield is in a table. #5501
Comments
I think this is a dup of #3738, it happens outside of a table too. |
Thanks for commenting on this, @j0hnsmith. @jronSomers: your issue is happening because your code seems to be passing an I wasn't able to fix it, your code seems a little too confusing, you are also mutating the I'm closing this issue since it doesn't seem to be a Material UI related problem. |
@lucasbento Hey, thank you very much for looking into my issue. Sorry about not having a 100% accurate example, I am making a copy of the rows and then I call I am trying to dynamically create a certain number of rows in a table, all with unique identifiers as well. The columns in this table are static by the way so that makes it a bit easier. I don't really know the number of rows i will need until the user inputs the number and then moves on to the next page where that number of rows will be rendered in the table. So with that, I use the square brackets, Also, according to the controlled text field example on the material-ui demo website, they use the prop But I do agree, removing the value prop does fix this issue but I also don't know how I can set the value of a text field with data that i pull from the back end if I can't use the Thanks again! |
@lucasbento just wanted to confirm, was this ticked closed because it is indeed a dupe of #3738? |
Problem description
The TextField's Floating Label Text is broken when it is within a Table in a TableRowColumn.
You can input some values and the floating label text falls back down on top of the text you typed. There was a similar issue in the past but it was related to autofill I believe but the results look similar (the floating label text overlaps the text in the input).
Link to minimally-working code that reproduces the issue
Here is a link that reproduces the issue. It does work with 0.16.0. I couldn't reproduce it at first until I noticed i'm using 0.16.1 and webpackbin was using 0.16.0. I updated it to 0.16.1 and voila.
Actually, it is still broken in 0.16.0 but if you wait to defocus the text field, the floating label text will stay floating. But if you adjust a text field on the same row, it causes the other text field to fall down.
http://www.webpackbin.com/V1tWeXQxG
Versions
The text was updated successfully, but these errors were encountered: