We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ed61f7 commit 0a317bfCopy full SHA for 0a317bf
1 file changed
packages/react/src/components/UIShell/HeaderPanel.js
@@ -71,7 +71,7 @@ const HeaderPanel = React.forwardRef(function HeaderPanel(
71
setLastClickedElement(focusedElement);
72
73
if (
74
- children.type.__docgenInfo.displayName === 'Switcher' &&
+ children.type?.displayName === 'Switcher' &&
75
!focusedElement?.closest(`.${prefix}--header-panel--expanded`) &&
76
!focusedElement?.closest(`.${prefix}--header__action`) &&
77
!headerPanelRef?.current?.classList.contains(`${prefix}--switcher`) &&
0 commit comments