Skip to content
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 Issue with input of type number #630

Closed
obermillerk opened this issue Dec 5, 2017 · 2 comments
Closed

Backspace Issue with input of type number #630

obermillerk opened this issue Dec 5, 2017 · 2 comments

Comments

@obermillerk
Copy link

obermillerk commented Dec 5, 2017

Using backspace in a number input will only delete from the right end, even if the caret is located elsewhere in the string.

For example, say the number 123 is the current value. Place the caret directly to the right of the 1 and press backspace, you would expect this to delete the 1, leaving a value of 23. Instead, the caret is moved to the right side and the 3 is deleted, leaving a value of 12.

I have only found this behavior in number inputs, of the input types that work with the keyboard. I should also note that date, datetime-local, month, time, and week types crash the keyboard and prevent it from working due to those types not supporting selection, despite supporting keyboard input.

@Mottie
Copy link
Owner

Mottie commented Dec 5, 2017

Hi @obermillerk!

Please see #287 and #241.

@obermillerk
Copy link
Author

I see... That's a shame. I've managed to set my number inputs up as text inputs with special keyboards that only have number keys. The min and step attributes still seem to work for text inputs so I still have the functionality that I need. Thanks for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants