When using the Input Component it will accept type='number' but you cannot pass a value or defaultValue type of Number. If you pass the numeric value as a String to the Input number type, you cannot use the up/down arrows to modify that number
Use Input Component, add type='number' and any numeric value (value={1}) or pass in a variable that is a number
Expected behavior
As a user, I expect to be able to pass in a number to an Input with type number and be able to use the up/down errors to change that value. Instead I am required to pass in a string that is not modifiable using those arrows
NextUI Version
2.4.2
Describe the bug
When using the Input Component it will accept
type='number'
but you cannot pass avalue
ordefaultValue
type of Number. If you pass the numeric value as a String to the Inputnumber
type, you cannot use the up/down arrows to modify that numberYour Example Website or App
No response
Steps to Reproduce the Bug or Issue
type='number'
and any numeric value (value={1}
) or pass in a variable that is a numberExpected behavior
As a user, I expect to be able to pass in a number to an Input with type number and be able to use the up/down errors to change that value. Instead I am required to pass in a string that is not modifiable using those arrows
Screenshots or Videos
No response
Operating System Version
OS: MacOS
Browser
Chrome