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
// ...and lastly we update the caret selection, even if the option `isCancellable` is falsethis.select();//TODO Add an option to select either the integer or decimal part with `Esc`
I would expect that the update to the caret selection would at least follow the options that already exist, e.g. selectOnFocus and selectNumberOnly.
The text was updated successfully, but these errors were encountered:
I fail to see how selectOnFocus is related to the Escape key allowing to select when hitting the Escape key.
Also, as per the documentation, isCancellable also allow the Esc key to select everything:
So those options and behaviors are working as expected, and will not change.
However there could be a use case where hitting the Esc key only cancel the changes (or not), and do not select anything.
Given that
isCancellable: false
andselectOnFocus: false
:Current behavior
When I hit Escape, the input value is selected.
Expected behavior
When I hit Escape, the input value should not be selected.
Steps to reproduce the problem
v4.10.4
Then my computer exploded, for real.If I type some numbers and hit Escape, the input value is selected.Reproduction example: https://jsfiddle.net/Lxh8aned/
Code exploration
I found this code:
I would expect that the update to the caret selection would at least follow the options that already exist, e.g.
selectOnFocus
andselectNumberOnly
.The text was updated successfully, but these errors were encountered: