diff --git a/public/app/core/components/AppChrome/AppChromeMenu.tsx b/public/app/core/components/AppChrome/AppChromeMenu.tsx index 2118f967f83..bd5c79d21c5 100644 --- a/public/app/core/components/AppChrome/AppChromeMenu.tsx +++ b/public/app/core/components/AppChrome/AppChromeMenu.tsx @@ -44,7 +44,7 @@ export function AppChromeMenu({}: Props) { // don't close when interacting with a select menu inside the mega menu // e.g. for the org switcher const isSelectMenu = document - .querySelector(`[data-testid=${selectors.components.Select.menu}]`) + .querySelector(`[data-testid="${selectors.components.Select.menu}"]`) ?.contains(element); return !isMenuToggle && !isSelectMenu; },