fix: native filter dropdown not attached to parent node (#19399)

This commit is contained in:
Diego Medina 2022-04-06 00:11:56 -04:00 committed by GitHub
parent e118b4d733
commit c5b0dc3ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,9 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) {
value={filterState.value || []} value={filterState.value || []}
disabled={isDisabled} disabled={isDisabled}
getPopupContainer={ getPopupContainer={
showOverflow ? () => parentRef?.current : undefined showOverflow
? () => parentRef?.current
: (trigger: HTMLElement) => trigger?.parentNode
} }
showSearch={showSearch} showSearch={showSearch}
mode={multiSelect ? 'multiple' : 'single'} mode={multiSelect ? 'multiple' : 'single'}