Fix small input-related bugs (#6258)
This commit is contained in:
parent
5c151dae19
commit
b4ea9af9ce
@ -54,7 +54,7 @@ function reformat (value?: string | BN, isDisabled?: boolean, siDecimals?: numbe
|
||||
: formatBalance.findSi('-');
|
||||
|
||||
return [
|
||||
formatBalance(value, { decimals, forceUnit: si.value, withSi: false }).replace(',', isDisabled ? ',' : ''),
|
||||
formatBalance(value, { decimals, forceUnit: si.value, withSi: false }).replace(/,/g, isDisabled ? ',' : ''),
|
||||
si
|
||||
];
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@ class Params extends React.PureComponent<Props, State> {
|
||||
defaultValue={values[index]}
|
||||
index={index}
|
||||
isDisabled={isDisabled}
|
||||
key={`${name || ''}:${type.toString()}:${index}:${stringify(values[index])}`}
|
||||
key={`${name || ''}:${type.toString()}:${index}:${isDisabled ? stringify(values[index]) : ''}`}
|
||||
name={name}
|
||||
onChange={this.onChangeParam}
|
||||
onEnter={onEnter}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user