Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
float input, use toLocaleString instead of toString
toLocalString never uses exponential notation, so it works better with our current system: - with the acceptValue regex, exponential notation is rejected so the user can't edit the field at all anymore - even if exponential notation was accepted, switching automatically from plain to exponential or vice versa is hard to understand and predict because the input changes a lot, eg 10000000000000 -> 1e22 - even if it could be implemented, cursor position preservation becomes even more complex with exponential notation. Note: even with toLocaleString, the cursor may jump with more than 15 digits when precision forces a change in digits
- Loading branch information