From d1da0c4e6ec6d1d3111aab734d875583ef3cabfd Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Wed, 23 Feb 2022 13:57:19 +0100 Subject: [PATCH] feat(native-filters): Don't scroll main window when scrolling filter bar --- .../dashboard/components/nativeFilters/FilterBar/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx index e035ee02dedf7..3ae365007a113 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx @@ -327,7 +327,10 @@ const FilterBar: React.FC = ({ filterValues, ); const isInitialized = useInitialization(); - const tabPaneStyle = useMemo(() => ({ overflow: 'auto', height }), [height]); + const tabPaneStyle = useMemo( + () => ({ overflow: 'auto', height, overscrollBehavior: 'contain' }), + [height], + ); const numberOfFilters = filterValues.filter( filterValue => filterValue.type === NativeFilterType.NATIVE_FILTER,