Skip to content

Commit 2157b73

Browse files
authored
fix(nav): flyout onMouseOver logic (#6325)
1 parent 1f90b95 commit 2157b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-core/src/components/Nav/NavItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const NavItem: React.FunctionComponent<NavItemProps> = ({
7070
const onMouseOver = () => {
7171
if (hasFlyout) {
7272
showFlyout(true);
73-
} else {
73+
} else if (flyoutRef !== null) {
7474
setFlyoutRef(null);
7575
}
7676
};

0 commit comments

Comments
 (0)