Skip to content

Commit 6041467

Browse files
authored
fix(ui): fallback selector for compactSelect boundary (#104388)
not all pages have a `main` section, but most have a div with id="main", which we can query as a fallback
1 parent e75b85d commit 6041467

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

static/app/components/core/compactSelect/control.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,10 @@ export function Control({
298298
preventOverflowOptions: {
299299
...preventOverflowOptions,
300300
boundary:
301-
preventOverflowOptions?.boundary ?? document.querySelector('main') ?? undefined,
301+
preventOverflowOptions?.boundary ??
302+
document.querySelector('main') ??
303+
document.getElementById('main') ??
304+
undefined,
302305
},
303306
flipOptions,
304307
strategy,

0 commit comments

Comments
 (0)