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
rawValue will 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 between 0 and the minimumValue
- For instance this means that if we have a
minimumValue set to 1234, then we would need to allow the user to type 1, 12 and 123 before finally accepting the correct value 1234.
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.
Currently, if a user sets the
minimumValueoption to a value superior to zero, it effectively prevent him to delete the input value, since it would mean therawValuewould be equal to0.While this is exactly what the
minimumValueoption 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:
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),0, but any values between0and theminimumValueminimumValueset to1234, then we would need to allow the user to type1,12and123before finally accepting the correct value1234.To that end, we would need to create a new option
overrideMinimumValueLimitation(or something equivalent) set tofalseby default, that would allow a user to input values between0andminimumValuein 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.