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
Using NumberInput as an uncontrolled component with defaultValue does not set the defaultValue correctly, and throws a warning in the console about using both value and defaultValue simultaneously
Is this issue related to a specific component?
NumberInput
What did you expect to happen? What happened instead? What would you like to
see changed?
expected it to display the defaultValue correctly
expected it to not throw a warning in the console about having value and defaultValue set simultaneously
What browser are you working in?
chrome 86.0.4240.198
What version of the Carbon Design System are you using?
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
NumberInput
as an uncontrolled component withdefaultValue
does not set thedefaultValue
correctly, and throws a warning in the console about using bothvalue
anddefaultValue
simultaneouslyNumberInput
defaultValue
correctlyvalue
anddefaultValue
set simultaneously[email protected]
Steps to reproduce the issue
NumberInput
with adefaultValue
Additional information
The text was updated successfully, but these errors were encountered: