Text input of type number
should forbid invalid characters and allow decimal values
#93
Labels
bug
Something isn't working
Describe the bug
Currently a text input of type
number
would allow characters such asa
(the captured value would then becomenull
), and at the same time double values such as1.2
would fail the validation (with the follwing error message:{some number: {number: true}}
).To Reproduce
SurveyJs json
SurveyJs answer
Expected behavior
A text field of type
number
should restrict the keyboard to allow only digits and (0 or 1) decimal point(s). And decimal values (such as1.2
) shouldn't fail thenumber
validator. This is also how the web version behaves.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: