aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-14 00:09:46 +0800
committerFabio Berger <me@fabioberger.com>2018-10-14 00:09:46 +0800
commitd85daab96700dc77cd55f5b97c1e290a95ef20a4 (patch)
tree68a042a088385d4d865be67633f18406359d87c0 /packages/website/ts
parent11941b08b686d13f02c0d2c1bf6d58692dd701db (diff)
downloaddexon-sol-tools-d85daab96700dc77cd55f5b97c1e290a95ef20a4.tar
dexon-sol-tools-d85daab96700dc77cd55f5b97c1e290a95ef20a4.tar.gz
dexon-sol-tools-d85daab96700dc77cd55f5b97c1e290a95ef20a4.tar.bz2
dexon-sol-tools-d85daab96700dc77cd55f5b97c1e290a95ef20a4.tar.lz
dexon-sol-tools-d85daab96700dc77cd55f5b97c1e290a95ef20a4.tar.xz
dexon-sol-tools-d85daab96700dc77cd55f5b97c1e290a95ef20a4.tar.zst
dexon-sol-tools-d85daab96700dc77cd55f5b97c1e290a95ef20a4.zip
fix: Dropdown component so that re-clicking the activeNode when dropdown is open, closes it
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/components/ui/drop_down.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/ui/drop_down.tsx b/packages/website/ts/components/ui/drop_down.tsx
index 9044b218d..4138b3fe5 100644
--- a/packages/website/ts/components/ui/drop_down.tsx
+++ b/packages/website/ts/components/ui/drop_down.tsx
@@ -100,7 +100,7 @@ export class DropDown extends React.Component<DropDownProps, DropDownState> {
private _onActiveNodeClick(event: React.FormEvent<HTMLInputElement>): void {
if (this.props.activateEvent === DropdownMouseEvent.Click) {
this.setState({
- isDropDownOpen: true,
+ isDropDownOpen: !this.state.isDropDownOpen,
anchorEl: event.currentTarget,
});
}