From 620fb87fb87bbc20715c40dd4337fa46ed3c221b Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Fri, 1 Nov 2024 16:25:01 +0000 Subject: [PATCH] AppChromeMenu: Fix selector when checking for outside click (#95736) need quotes... --- public/app/core/components/AppChrome/AppChromeMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; },