diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-22 06:24:13 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-22 06:24:13 +0800 |
commit | 10c9d0b723ba190a7f1c4df112ae0c5b37887bb9 (patch) | |
tree | b331f1ed3aa5158437867c7a68b242ac55336363 /packages/instant/src/components | |
parent | 0adc8f5053894de7df85aacb6a8bf8714f989f0a (diff) | |
download | dexon-0x-contracts-10c9d0b723ba190a7f1c4df112ae0c5b37887bb9.tar.gz dexon-0x-contracts-10c9d0b723ba190a7f1c4df112ae0c5b37887bb9.tar.zst dexon-0x-contracts-10c9d0b723ba190a7f1c4df112ae0c5b37887bb9.zip |
Force scaling input component to rerender when a different asset is chosen
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r-- | packages/instant/src/components/erc20_asset_amount_input.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/instant/src/components/erc20_asset_amount_input.tsx b/packages/instant/src/components/erc20_asset_amount_input.tsx index 0706833d2..b734af61a 100644 --- a/packages/instant/src/components/erc20_asset_amount_input.tsx +++ b/packages/instant/src/components/erc20_asset_amount_input.tsx @@ -65,6 +65,7 @@ export class ERC20AssetAmountInput extends React.Component<ERC20AssetAmountInput onAmountChange={this._handleChange} onFontSizeChange={this._handleFontSizeChange} hasAutofocus={true} + key={asset.assetData} /> </Container> <Container |