From e5c74780268c78355e21bc0f7af0069a59bed41e Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Wed, 23 Feb 2022 15:04:27 +0100 Subject: [PATCH] feat(native-filters): Don't scroll main window when scrolling filter bar (#18876) --- .../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,