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
Preventing invalid input is long gone from Vaadin, it has been replaced with allowedCharPattern. This prevents the user from entering an incorrect character, but still allows the end result to be an invalid sequence (e.g. . 0 . 1 in floating-point fields). Investigate if using allowedCharPattern dynamically (on each character typed or pasted) can be a good solution. If it turns out to be doable, but negatively affecting performance, make it an optional feature (strict mode).
The text was updated successfully, but these errors were encountered:
vaadin-miki
changed the title
Number fields should not allow entering invalid numbers
Number fields should not allow entering invalid sequences of valid characters
May 4, 2023
vaadin-miki
changed the title
Number fields should not allow entering invalid sequences of valid characters
Bring back setPreventInvalidInputJun 1, 2023
Preventing invalid input is long gone from Vaadin, it has been replaced with
allowedCharPattern
. This prevents the user from entering an incorrect character, but still allows the end result to be an invalid sequence (e.g.. 0 . 1
in floating-point fields). Investigate if usingallowedCharPattern
dynamically (on each character typed or pasted) can be a good solution. If it turns out to be doable, but negatively affecting performance, make it an optional feature (strict mode).The text was updated successfully, but these errors were encountered: