Skip to content

Commit

Permalink
feat(native-filters): Don't scroll main window when scrolling filter bar
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Feb 23, 2022
1 parent 700829b commit d1da0c4
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 d1da0c4

Please sign in to comment.