-
Notifications
You must be signed in to change notification settings - Fork 227
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
Floating label on textfield overlaps with input value #165
Comments
Thanks for filing the issue. I'm able to reproduce and actually get the same effect if i swap out The issue is the react component only updates the value in the textField component onChange. This breaks when anything else updates value (ie. blur, focus). SO I think the solution is moving when the |
Oh yeah nice and quick fix, great work 👍 |
This seemed important and quick :) We'll leave it open until it is merged into master - Thanks again |
I've just run this this issue with some of the fields that I'm using. I'm a bit of a newbie and wondering what the best way is for me to resolve this. Are there any recent best practices? Thanks in advance! |
@derektumulak are you still running into this? A codepen/stackblitz will help in helping you. |
The floating lable in a text field overlaps with the input text when it's removed and reset with onblur:
Steps to reproduce
Create a text field with an onblur method that resets the value to something else:
Maybe a fix could be to reuse the code that checks if there's text in the input when the text field is mounted (this is done to prevent the lable from overlaping the input text when it's mounted in case a value is set from the beginning) to check every time it blurs or every time the class changed to
--float-above
?The text was updated successfully, but these errors were encountered: