1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 02:58:09 +01:00
metamask-extension/ui/app
Mark Stacey f381f41cb2
Fix network dropdown button (#10312)
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.
2021-01-30 12:12:55 -03:30
..
components Fix network dropdown button (#10312) 2021-01-30 12:12:55 -03:30
contexts add new MetaMetricsController (#9857) 2020-12-02 15:41:30 -06:00
css Add box component (#10289) 2021-01-27 11:54:25 -06:00
ducks Cancel transaction when swaps submission is failed because the simulation fails (#10288) 2021-01-26 17:01:25 -03:30
helpers Add box component (#10289) 2021-01-27 11:54:25 -06:00
hooks Fix useTransactionDisplayData unit tests (#10134) 2021-01-04 09:45:54 -08:00
pages Add origin to transaction confirmation (#10296) 2021-01-28 14:29:45 -03:30
selectors Add NETWORK_TYPE_RPC constant (#10203) 2021-01-20 08:49:05 -08:00
store Cancel transaction when swaps submission is failed because the simulation fails (#10288) 2021-01-26 17:01:25 -03:30