diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-22 06:33:12 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-22 06:33:12 +0800 |
commit | b0792a85a4d002bfe54ba228bfeadf29c89bfe09 (patch) | |
tree | 462ba1dd68e479958404b39d79cee6af68fbd513 /packages | |
parent | 10c9d0b723ba190a7f1c4df112ae0c5b37887bb9 (diff) | |
download | dexon-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
Diffstat (limited to 'packages')
-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 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> |