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 | |
parent | 0adc8f5053894de7df85aacb6a8bf8714f989f0a (diff) | |
download | dexon-sol-tools-10c9d0b723ba190a7f1c4df112ae0c5b37887bb9.tar dexon-sol-tools-10c9d0b723ba190a7f1c4df112ae0c5b37887bb9.tar.gz dexon-sol-tools-10c9d0b723ba190a7f1c4df112ae0c5b37887bb9.tar.bz2 dexon-sol-tools-10c9d0b723ba190a7f1c4df112ae0c5b37887bb9.tar.lz dexon-sol-tools-10c9d0b723ba190a7f1c4df112ae0c5b37887bb9.tar.xz dexon-sol-tools-10c9d0b723ba190a7f1c4df112ae0c5b37887bb9.tar.zst dexon-sol-tools-10c9d0b723ba190a7f1c4df112ae0c5b37887bb9.zip |
Force scaling input component to rerender when a different asset is chosen
Diffstat (limited to 'packages/instant')
-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 |