AppChromeMenu: Fix selector when checking for outside click (#95736)

need quotes...
This commit is contained in:
Ashley Harrison 2024-11-01 16:25:01 +00:00 committed by GitHub
parent 3deffe58f6
commit 620fb87fb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
},