aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-07-29 06:40:26 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-07-29 06:40:26 +0800
commit34834c108dafd1de75f26a09d78feb8949ef5e56 (patch)
tree8df0c97bffcaa498b2b521e544fce6f83335daaf /ui
parent24d375aaf1717f1ae743fbe6e83eb50f0e6a4b95 (diff)
downloadtangerine-wallet-browser-34834c108dafd1de75f26a09d78feb8949ef5e56.tar.gz
tangerine-wallet-browser-34834c108dafd1de75f26a09d78feb8949ef5e56.tar.zst
tangerine-wallet-browser-34834c108dafd1de75f26a09d78feb8949ef5e56.zip
Fix dropdown toggle behavior - settings
Diffstat (limited to 'ui')
-rw-r--r--ui/app/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index b251baefd..f293e89bd 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -308,7 +308,11 @@ App.prototype.renderDropdown = function () {
isOpen: isOpen,
zIndex: 11,
onClickOutside: (event) => {
- this.setState({ isMainMenuOpen: !isOpen })
+ const { classList } = event.target
+ const isNotToggleElement = !classList.contains('sandwich-expando')
+ if (isNotToggleElement) {
+ this.setState({ isMainMenuOpen: false })
+ }
},
style: {
position: 'absolute',