mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
feat(native-filters): Don't scroll main window when scrolling filter bar (#18876)
This commit is contained in:
parent
700829b74a
commit
e5c7478026
@ -327,7 +327,10 @@ const FilterBar: React.FC<FiltersBarProps> = ({
|
|||||||
filterValues,
|
filterValues,
|
||||||
);
|
);
|
||||||
const isInitialized = useInitialization();
|
const isInitialized = useInitialization();
|
||||||
const tabPaneStyle = useMemo(() => ({ overflow: 'auto', height }), [height]);
|
const tabPaneStyle = useMemo(
|
||||||
|
() => ({ overflow: 'auto', height, overscrollBehavior: 'contain' }),
|
||||||
|
[height],
|
||||||
|
);
|
||||||
|
|
||||||
const numberOfFilters = filterValues.filter(
|
const numberOfFilters = filterValues.filter(
|
||||||
filterValue => filterValue.type === NativeFilterType.NATIVE_FILTER,
|
filterValue => filterValue.type === NativeFilterType.NATIVE_FILTER,
|
||||||
|
Loading…
Reference in New Issue
Block a user