Adds min value for input in the advanced-gas-inputs component to prevent users from entering negative values on keypress, change, etc.
feature/default_network_editable
Thomas Huang 5 years ago committed by GitHub
parent a2fc06dce9
commit 39dad370c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ui/app/components/app/gas-customization/advanced-gas-inputs/advanced-gas-inputs.component.js

@ -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}
/>

Loading…
Cancel
Save