diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-25 06:19:06 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-25 06:19:06 +0800 |
commit | c0d75c64767c36b2d08d5392d49f8f3994ba6f32 (patch) | |
tree | 3a766b6474d650a975c098d7dbc324002a7377c9 /packages/website/ts/components/inputs | |
parent | 5b6cf447e5793a775d8d590647c85971a6746909 (diff) | |
download | dexon-sol-tools-c0d75c64767c36b2d08d5392d49f8f3994ba6f32.tar dexon-sol-tools-c0d75c64767c36b2d08d5392d49f8f3994ba6f32.tar.gz dexon-sol-tools-c0d75c64767c36b2d08d5392d49f8f3994ba6f32.tar.bz2 dexon-sol-tools-c0d75c64767c36b2d08d5392d49f8f3994ba6f32.tar.lz dexon-sol-tools-c0d75c64767c36b2d08d5392d49f8f3994ba6f32.tar.xz dexon-sol-tools-c0d75c64767c36b2d08d5392d49f8f3994ba6f32.tar.zst dexon-sol-tools-c0d75c64767c36b2d08d5392d49f8f3994ba6f32.zip |
Hide tooltip after allowance toggle click
Diffstat (limited to 'packages/website/ts/components/inputs')
-rw-r--r-- | packages/website/ts/components/inputs/allowance_state_toggle.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/website/ts/components/inputs/allowance_state_toggle.tsx b/packages/website/ts/components/inputs/allowance_state_toggle.tsx index 764013682..4f986dadc 100644 --- a/packages/website/ts/components/inputs/allowance_state_toggle.tsx +++ b/packages/website/ts/components/inputs/allowance_state_toggle.tsx @@ -59,7 +59,7 @@ export class AllowanceStateToggle extends React.Component<AllowanceStateTogglePr const tooltipId = `tooltip-id-${this.props.token.symbol}`; return ( <Container cursor="pointer"> - <ReactTooltip effect="solid" offset={{ top: 3 }} id={tooltipId}> + <ReactTooltip id={tooltipId} effect="solid" offset={{ top: 3 }}> {this._getTooltipContent()} </ReactTooltip> <div @@ -114,6 +114,8 @@ export class AllowanceStateToggle extends React.Component<AllowanceStateTogglePr } } private async _onToggleAllowanceAsync(): Promise<void> { + // Close all tooltips + ReactTooltip.hide(); if (this.props.userAddress === '') { this.props.dispatcher.updateShouldBlockchainErrDialogBeOpen(true); return; |