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:
parent
a2fc06dce9
commit
39dad370c8
@ -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…
Reference in New Issue
Block a user