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
1 changed files with 3 additions and 1 deletions

View File

@ -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'}