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
I expect Input Number to behave the same as the html <input type="number"> does, meaning it rejects non-numerical entries, but allows floats as well as integers.
If Input Number is intended to always be restricted to integers, I would expect it to behave at least consistently, and reject non-integer values, leading zeros, and especially letters etc.
Even only allowing input via the buttons would be fine, if documented properly and if the behavior is consistent.
Actual Behavior
Rejection of non-numerical input is not consistent.
Screenshots
No response
The text was updated successfully, but these errors were encountered:
oliverhaas
changed the title
Input Number: Validation bug, or at least inconsistent.
Input Number: Validation/rejection bug, or at least inconsistent.
Jul 10, 2024
Summary
Input Number validation is not consistent, and differs from
<input type="number">
.Steps to Reproduce
Go to the online docs in the provided link and try for example the following inputs:
0.1
will rejected and set to0
02
will not be rejected2.323
will not be rejected5.12sdffa2
will not be rejectedDemo Link
https://preline.co/docs/input-number.html#maximum-value
Expected Behavior
I expect Input Number to behave the same as the html
<input type="number">
does, meaning it rejects non-numerical entries, but allows floats as well as integers.If Input Number is intended to always be restricted to integers, I would expect it to behave at least consistently, and reject non-integer values, leading zeros, and especially letters etc.
Even only allowing input via the buttons would be fine, if documented properly and if the behavior is consistent.
Actual Behavior
Rejection of non-numerical input is not consistent.
Screenshots
No response
The text was updated successfully, but these errors were encountered: