diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-29 06:40:26 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-29 06:40:26 +0800 |
commit | 34834c108dafd1de75f26a09d78feb8949ef5e56 (patch) | |
tree | 8df0c97bffcaa498b2b521e544fce6f83335daaf /ui | |
parent | 24d375aaf1717f1ae743fbe6e83eb50f0e6a4b95 (diff) | |
download | tangerine-wallet-browser-34834c108dafd1de75f26a09d78feb8949ef5e56.tar tangerine-wallet-browser-34834c108dafd1de75f26a09d78feb8949ef5e56.tar.gz tangerine-wallet-browser-34834c108dafd1de75f26a09d78feb8949ef5e56.tar.bz2 tangerine-wallet-browser-34834c108dafd1de75f26a09d78feb8949ef5e56.tar.lz tangerine-wallet-browser-34834c108dafd1de75f26a09d78feb8949ef5e56.tar.xz 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.js | 6 |
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', |