From c5b0dc3ea62aa98aa732e0c618e84e7cf68c4e54 Mon Sep 17 00:00:00 2001 From: Diego Medina Date: Wed, 6 Apr 2022 00:11:56 -0400 Subject: [PATCH] fix: native filter dropdown not attached to parent node (#19399) --- .../src/filters/components/Select/SelectFilterPlugin.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx b/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx index 8388e13a3d594..9803e4a7e6fac 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'}