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
Description
When I create a <Input /> using useNumberInput, If <Input /> use defaultValue then can't change it with setState. I can change value instead of defaultValue, setState is working, but <Input /> can't type number decimal anymore.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
When I create a
<Input />
usinguseNumberInput
, If<Input />
use defaultValue then can't change it with setState. I can change value instead of defaultValue, setState is working, but<Input />
can't type number decimal anymore.Steps to reproduce && Link to Reproduction
https://codesandbox.io/p/sandbox/chakra-menuitemoption-forked-py8xs6?file=%2Fsrc%2Findex.tsx%3A59%2C30-59%2C48
Chakra UI Version
2.8.0
Browser
Chrome
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions