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
gitcobra
changed the title
Add new prop to allow only numbers, not null, for <n-input-number>
Add new prop to disallow empty for <n-input-number>
Dec 10, 2024
<n-input-number>
rejects non-numeric values by default, but when the input box is empty, the value is set tonull
even ifmin
prop exists.This behavior is intentional probably, but I think there are many cases where we need only a valid
number
without empty.Currently I have to set
on-update:value
oron-blur
to rejectnull
.Suggested solution
I suggest something new prop to disallow empty like
:disallow-empty="true"
or
:allow-empty="false"
etc..
If the prop specified and the input box is empty, the value should be the same as
min
prop or0
.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: