aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 06:33:12 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 06:33:12 +0800
commitb0792a85a4d002bfe54ba228bfeadf29c89bfe09 (patch)
tree462ba1dd68e479958404b39d79cee6af68fbd513
parent10c9d0b723ba190a7f1c4df112ae0c5b37887bb9 (diff)
downloaddexon-sol-tools-b0792a85a4d002bfe54ba228bfeadf29c89bfe09.tar
dexon-sol-tools-b0792a85a4d002bfe54ba228bfeadf29c89bfe09.tar.gz
dexon-sol-tools-b0792a85a4d002bfe54ba228bfeadf29c89bfe09.tar.bz2
dexon-sol-tools-b0792a85a4d002bfe54ba228bfeadf29c89bfe09.tar.lz
dexon-sol-tools-b0792a85a4d002bfe54ba228bfeadf29c89bfe09.tar.xz
dexon-sol-tools-b0792a85a4d002bfe54ba228bfeadf29c89bfe09.tar.zst
dexon-sol-tools-b0792a85a4d002bfe54ba228bfeadf29c89bfe09.zip
Add comment
-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 b734af61a..ff900842a 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}
+ /* We send in a key of asset data to force a rerender of this component when the user selects a new asset. We do this so the autofocus attribute will bring focus onto this input */
key={asset.assetData}
/>
</Container>