diff --git a/packages/ui-app/src/InputNumber.tsx b/packages/ui-app/src/InputNumber.tsx index 8fc40c5955..a7a972d2e4 100644 --- a/packages/ui-app/src/InputNumber.tsx +++ b/packages/ui-app/src/InputNumber.tsx @@ -51,7 +51,7 @@ class InputNumber extends React.PureComponent { constructor (props: Props) { super(props); - const { defaultValue, isSi, value } = this.props; + const { defaultValue, isDisabled, isSi, value } = this.props; let valueBN = new BN(value || 0); const si = formatBalance.findSi('-'); @@ -60,7 +60,7 @@ class InputNumber extends React.PureComponent { ? new BN(defaultValue || valueBN).div(new BN(10).pow(new BN(si.power))).toString() : (defaultValue || valueBN).toString(), isPreKeyDown: false, - isValid: !isUndefined(value), + isValid: isDisabled || !isUndefined(value), siOptions: formatBalance.getOptions().map(({ power, text, value }) => ({ value, text: power === 0