We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c97fa86 commit ad3d78aCopy full SHA for ad3d78a
client/components/Menubar/Menubar.jsx
@@ -154,8 +154,10 @@ function Menubar({ children, className }) {
154
155
if (!isInMenu) {
156
timerRef.current = setTimeout(() => {
157
- setMenuOpen('none');
158
- setHasFocus(false);
+ if (nodeRef.current) {
+ setMenuOpen('none');
159
+ setHasFocus(false);
160
+ }
161
}, 10);
162
}
163
},
@@ -213,6 +215,10 @@ function Menubar({ children, className }) {
213
215
214
216
}, [activeIndex, prevIndex, menuItems]);
217
218
+ useEffect(() => {
219
+ clearHideTimeout();
220
+ }, [clearHideTimeout]);
221
+
222
// context value for dropdowns and menu items
223
const contextValue = useMemo(
224
() => ({
0 commit comments