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
Find workaround setSelectionRange with number inputs (ff 51+) #122
Comments
Update: Reported Firefox bug might not be a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1333737 Explained via w3.org comment here. ..still need a workaround, though |
The only work around will be to not update the cursor position. This means that keying left or right will not work. Lame ... |
Related whatwg/html#2358 |
It seems the only recourse is to maintain an internal model of what the typing would result in and update the value and events accordingly. |
@kdillon and I paired on this issue because this test is failing in Firefox right now. For now, we’re changing this line to test for I don’t know if we still want to pursue a “workaround” for something that isn’t guaranteed by the spec. 😕 |
Closing this because I think it’s “fixed” with #124 |
FF 51.0.1+ throws and error when trying to use setSelectionRange on a number input.
Line that causes the error: https://github.com/bitovi/syn/blob/master/src/key.js#L310
Firefox Bug Reported: https://bugzilla.mozilla.org/show_bug.cgi?id=1339154
The text was updated successfully, but these errors were encountered: