Page MenuHomePhabricator

D6016.diff
No OneTemporary

D6016.diff

diff --git a/web/components/menu.react.js b/web/components/menu.react.js
--- a/web/components/menu.react.js
+++ b/web/components/menu.react.js
@@ -93,9 +93,13 @@
return () => closeMenu(ourSymbolValue);
}, [closeMenu]);
- const onClickMenuCallback = React.useCallback(() => {
- setCurrentOpenMenu(ourSymbol.current);
- }, [setCurrentOpenMenu]);
+ const onClickMenuCallback = React.useCallback(
+ e => {
+ e.stopPropagation();
+ setCurrentOpenMenu(ourSymbol.current);
+ },
+ [setCurrentOpenMenu],
+ );
if (React.Children.count(children) === 0) {
return null;

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 11:46 PM (18 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2507696
Default Alt Text
D6016.diff (604 B)

Event Timeline