aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 06:24:13 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 06:24:13 +0800
commit10c9d0b723ba190a7f1c4df112ae0c5b37887bb9 (patch)
treeb331f1ed3aa5158437867c7a68b242ac55336363 /packages/instant
parent0adc8f5053894de7df85aacb6a8bf8714f989f0a (diff)
downloaddexon-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.tsx1
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