Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
fix: add min max on spinbutton (#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmazzola authored Dec 3, 2019
1 parent f6de212 commit e09d461
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/modals/ConditionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ const Component: React.FC<Props> = (props) => {
? <div data-testid="condition-creator-modal-dropdown-numbervalue">
<OF.Label>Number</OF.Label>
<OF.SpinButton
max={Number.MAX_SAFE_INTEGER}
min={Number.MIN_SAFE_INTEGER}
value={numberValue.toString()}
onBlur={(event: React.FocusEvent<HTMLInputElement>) => {
const value = parseInt(event.target.value, 10)
Expand Down

0 comments on commit e09d461

Please sign in to comment.