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,8 @@ 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]);