Skip to content

Commit

Permalink
fix(NumberInput.js): replaced pipe character with || operator (#12662)
Browse files Browse the repository at this point in the history
* fixed syntax error.
  • Loading branch information
jt-helsinki committed Nov 16, 2022
1 parent 31a69e2 commit 66561ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/NumberInput/NumberInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const NumberInput = React.forwardRef(function NumberInput(props, forwardRef) {
<button
aria-label={decrementNumLabel || iconDescription}
className={`${prefix}--number__control-btn down-icon`}
disabled={disabled | readOnly}
disabled={disabled || readOnly}
onClick={(event) => {
const state = {
value: clamp(max, min, parseInt(value) - step),
Expand All @@ -220,7 +220,7 @@ const NumberInput = React.forwardRef(function NumberInput(props, forwardRef) {
<button
aria-label={incrementNumLabel || iconDescription}
className={`${prefix}--number__control-btn up-icon`}
disabled={disabled | readOnly}
disabled={disabled || readOnly}
onClick={(event) => {
const state = {
value: clamp(max, min, parseInt(value) + step),
Expand Down

0 comments on commit 66561ff

Please sign in to comment.