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
The NumberInput component does not disable the up/down buttons when the component is marked as "readOnly". The problem appears to be that the || operand is not specified correctly on lines 198 and 223. Fix is simple replace the pipe (|) character with an OR operator (||).
This appears to be a simple syntax error.
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
jt-helsinki
changed the title
[Bug]: Number Input not recognising readOnly correctly
[Bug]: NumberInput React component not recognising readOnly correctly
Nov 16, 2022
Package
@carbon/react
Browser
Chrome
Package version
1.14.0
React version
18
Description
The NumberInput component does not disable the up/down buttons when the component is marked as "readOnly". The problem appears to be that the
||
operand is not specified correctly on lines 198 and 223. Fix is simple replace the pipe (|
) character with an OR operator (||
).This appears to be a simple syntax error.
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Reproduction/example
Not needed
Steps to reproduce
Look at the code. It's a syntax error.
Code of Conduct
The text was updated successfully, but these errors were encountered: