mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
f381f41cb2
This fixes a bug where the network menu would remain present after a second click on the network menu button. The bug was caused by the click being handled _twice_, by two separate handlers. First it was caught by the external click handler of the dropdown menu, which closed the menu. Second, it was caught by the network button itself, which re- opened the menu. This all happens quickly enough that to the user it appears to stay open. The external click handler of the menu now only fires if the menu is open. Additionally, any click that is caught by the network menu is stopped from propagating further, so that it can't trigger additional click handlers. |
||
---|---|---|
.. | ||
fixtures | ||
mock-3box | ||
send-eth-with-private-key-test | ||
tests | ||
webdriver | ||
address-book.spec.js | ||
benchmark.js | ||
ethereum-on.spec.js | ||
fixture-server.js | ||
from-import-ui.spec.js | ||
ganache.js | ||
helpers.js | ||
incremental-security.spec.js | ||
metamask-responsive-ui.spec.js | ||
metamask-ui.spec.js | ||
metrics.spec.js | ||
permissions.spec.js | ||
run-all.sh | ||
send-edit.spec.js | ||
signature-request.spec.js | ||
threebox.spec.js |