type of InputNumberInputEvent.value
is "number | string"
, cause it can be string when there is nothing accept "-" (minus sign)
#15076
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Would be good to make the type InputNumberInputEvent with generics, so it would know that if p-inputNumber value can be negative then
InputNumberInputEvent.value
would be"number | string"
, if p-inputNumber would accept only positive numbers (like when[min]=0
) thenInputNumberInputEvent.value
is indeed"number"
Originally posted by @Maksym-Onyshchenko in #14831 (comment)
The text was updated successfully, but these errors were encountered: