You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In helpers.parseString each character of a pasted string is checked to see if it is a number or not. Confusingly isNaN(' ') returns false, i.e. ' ' is a number. MDN has a list of exmaples of things that are considered numbers.
Leading and trailing spaces are kept in the string when trying to parse it as a number, but these don't cause any issues, only spaces in the middle.
What should the behaviour be here? Should pasting 1 23.45 be 123.45, 1, invalid?
Slightly related - when pasting 12.34.56, this gets parsed as 12.34.
Reported by user. I haven't tried replicating this. Probably worth checking if issue exists in other browsers too.
The text was updated successfully, but these errors were encountered: