Skip to content

Commit

Permalink
Fixes #8492
Browse files Browse the repository at this point in the history
Adds min value for input in the advanced-gas-inputs component to prevent users from entering negative values on keypress, change, etc.
  • Loading branch information
tmashuang committed May 6, 2020
1 parent 8b30888 commit 0c38e0c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export default class AdvancedGasInputs extends Component {
'advanced-gas-inputs__gas-edit-row__input--warning': errorType === 'warning',
})}
type="number"
min="0"
value={value}
onChange={onChange}
/>
Expand Down

0 comments on commit 0c38e0c

Please sign in to comment.