Page MenuHomePhabricator

D3678.id11414.diff
No OneTemporary

D3678.id11414.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
@@ -58,11 +58,7 @@
return () => window.removeEventListener('resize', updatePosition);
}, [updatePosition]);
- // useLayoutEffect is necessary so that the menu position is immediately
- // updated in the first render of component
- React.useLayoutEffect(() => {
- updatePosition();
- }, [updatePosition]);
+ React.useEffect(updatePosition, [updatePosition]);
const closeMenuCallback = React.useCallback(() => {
closeMenu(menuActionList);

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 12:38 AM (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2674786
Default Alt Text
D3678.id11414.diff (609 B)

Event Timeline