-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
backspace fails to clear values on input type='email' #11881
Comments
@gaearon Is this a bug that a newbie to React contributing can take? If so, I would like to take it. |
@binygal its probably not a very newbie friendly bug (if it's a bug) :/ you are welcome to take a look but lets identify what's going on first before we try and fix anything |
So the reason it worked in In On master we no longer use mutation methods and rely on setting It's a hard problem (as mentioned in #6368) since the email input is trying to be "helpful" and trim what it considers invalid characters. We could possibly add some exceptions for updating |
We could also stop trying to have |
Yeah, I believe we've talked about doing it in the next major a few times. We should probably open an issue to centralize the discussion. |
When backspace, will fire topKeyDown, topInput, topKeyUp three event. I think the problem is the |
Thought I was hitting something similar here. Same symptom (no backspace) but I had mistakenly assigned the input type to "string" instead of "text" in case that's related or interesting. |
Can you confirm this is still and issue? |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
email input doesn't control for whitespace // possible variation on Issue 6368; however, 6368 shows up at 15.0.0 this bug shows up at 15.2
If the current behavior is a bug, demo
no bug in React 15.0.0
no bug in React 15.1.0
bug on React 15.2
React~15 fiddle
bug on React 16
React~16 fiddle
What is the expected behavior?
When a user presses down the backspace key and holds it, all values in the input are removed, including the whitespaces
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Works on 15.1.0
bug at >= 15.2.0
testing on Chrome 63
MacOs Sierra 10.12
The text was updated successfully, but these errors were encountered: