1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
Adds min value for input in the advanced-gas-inputs component to prevent users from entering negative values on keypress, change, etc.
This commit is contained in:
Thomas Huang 2020-05-06 09:59:34 -07:00 committed by GitHub
parent a2fc06dce9
commit 39dad370c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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