Page MenuHomePhabricator

D3678.id11348.diff
No OneTemporary

D3678.id11348.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,9 +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(() => {
+ React.useEffect(() => {
updatePosition();
}, [updatePosition]);

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 12:36 AM (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2674887
Default Alt Text
D3678.id11348.diff (494 B)

Event Timeline