InputNumber: setting "min" to anything greater than 0 implies "required" #10056
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
See https://github-tlqtev.stackblitz.io
Current behavior
A
min
value greater than0
on ap-inputNumber
impliesrequired
, while amin
value of0
or less does not.Expected behavior
Clicking in and out of a
p-inputNumber
withmin > 0
leaves it empty. Deleting a value, which hasmin > 0
is allowed. In other words:min
does not implyrequired
.Minimal reproduction of the problem with instructions
Open the StackBlitz above, and one-by-one click into each of the
p-inputNumber
, and finally on the blank page again. Just click, don't enter anything. Afterwards, I would expect having:but I get:
What is the motivation / use case for changing the behavior?
It is at the very least inconsistent.
Please tell us about your environment:
Not really relevant I guess. Reproducible on whatever StackBlitz is running at the time of writing.
Browser I tried with (all on Linux Mint 20) - all affected:
The text was updated successfully, but these errors were encountered: