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
@dgastudio Thanks for raising this. It's indeed unexpected to allow trailing plus/minus signs if the principle of InputNumber is "only omit value that isNaN(value) is false` IMO. It should be fixed.
But I believe + should be allowed at the beginning of value, acting as "positive sign" (when max is above 0), WDYT?
@dgastudio After some more investigation, I realized that it's the native <input type="number" /> that is allowing those characters, and it's the expected behavior per specification.
I'm leaving it as is for now, until we find the necessity to add additional constraints to alter what we should expect from InputNumber despite specification.
What version of rsuite are you using?
5.31
What version of React are you using?
nextjs 13
What version of TypeScript are you using (if any)?
No response
What browser are you using?
Chrome
Describe the Bug
https://rsuitejs.com/components/input-number/
is possible to add + and - to field values
i can't understand about -, but it shoud not work if you have set 0 as min
but +??
it can be cleared by form state updates, but...
thank you
Expected Behavior
only number are allowed in input
in case "min" param is not set, - can be applied
but not +
To Reproduce
No response
The text was updated successfully, but these errors were encountered: