Skip to content

Commit

Permalink
feat(native-filters): Don't scroll main window when scrolling filter …
Browse files Browse the repository at this point in the history
…bar (#18876)
  • Loading branch information
kgabryje authored Feb 23, 2022
1 parent 700829b commit e5c7478
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,10 @@ const FilterBar: React.FC<FiltersBarProps> = ({
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,
Expand Down

0 comments on commit e5c7478

Please sign in to comment.