-
Notifications
You must be signed in to change notification settings - Fork 413
Closed
Description
Currently, if a user sets the minimumValue option to a value superior to zero, it effectively prevent him to delete the input value, since it would mean the rawValue would be equal to 0.
While this is exactly what the minimumValue option is for, I see a use case where users would want to be able to temporarily clear the element, in order to type their valid values.
Allowing this will bring some side effects:
- First, the
rawValuewill be updated with a potential incorrect out of range value while the user is typing it (the user would then need to manage those error cases), - Second, we would need to allow not only the value
0, but any values between0and theminimumValue- For instance this means that if we have a
minimumValueset to1234, then we would need to allow the user to type1,12and123before finally accepting the correct value1234.
- For instance this means that if we have a
To that end, we would need to create a new option overrideMinimumValueLimitation (or something equivalent) set to false by default, that would allow a user to input values between 0 and minimumValue in the element, and would then revert to the last good known value on blur if it's still equal out of range.
This seems not trivial.
Reactions are currently unavailable