ft.InputFilter: change behaviour #3764
Closed
ClearSafety
started this conversation in
Ideas
Replies: 1 comment
-
Created an issue: #3769 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The class ft.InputFilter makes the field content be erased if a not allowed charactered is typed by the user.
On the other hand, the class ft.NumbersOnlyInputFilter() does not do it, it simply does not allow the not allowed typed value been entered in the field.
Using ft.NumbersOnlyInputFilter(), if you type 'd', for instance, nothing happens.
Using ft.InputFilter(regex_string='^\d*(.\d{0,2})?$'), if you type 'd', everything previously type is deleted.
I'd like to suggest that 'InputFilter' could have the same behaviour of NumbersOnlyInputFilter
Beta Was this translation helpful? Give feedback.
All reactions