diff --git a/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx b/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx index 8388e13a3d59..9803e4a7e6fa 100644 --- a/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx +++ b/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx @@ -306,7 +306,9 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) { value={filterState.value || []} disabled={isDisabled} getPopupContainer={ - showOverflow ? () => parentRef?.current : undefined + showOverflow + ? () => parentRef?.current + : (trigger: HTMLElement) => trigger?.parentNode } showSearch={showSearch} mode={multiSelect ? 'multiple' : 'single'}