From 39dad370c875b13836ae2cc3a72dcfae56c9ee5c Mon Sep 17 00:00:00 2001 From: Thomas Huang Date: Wed, 6 May 2020 09:59:34 -0700 Subject: [PATCH] Fixes #8492 (#8533) Adds min value for input in the advanced-gas-inputs component to prevent users from entering negative values on keypress, change, etc. --- .../advanced-gas-inputs/advanced-gas-inputs.component.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/app/components/app/gas-customization/advanced-gas-inputs/advanced-gas-inputs.component.js b/ui/app/components/app/gas-customization/advanced-gas-inputs/advanced-gas-inputs.component.js index 9c3432e5c..a3d97c035 100644 --- a/ui/app/components/app/gas-customization/advanced-gas-inputs/advanced-gas-inputs.component.js +++ b/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} />