From 762a84153db9b42bb7d987d50b58da752f765300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Mon, 23 May 2022 06:26:29 -0700 Subject: [PATCH] Table: Fix don't reset filter on resize (#48421) --- packages/grafana-ui/src/components/Table/Table.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/grafana-ui/src/components/Table/Table.tsx b/packages/grafana-ui/src/components/Table/Table.tsx index 1ca8e3a9ab8..19ff9f3df6c 100644 --- a/packages/grafana-ui/src/components/Table/Table.tsx +++ b/packages/grafana-ui/src/components/Table/Table.tsx @@ -183,6 +183,7 @@ export const Table: FC = memo((props: Props) => { disableResizing: !resizable, stateReducer: stateReducer, initialState: getInitialState(initialSortBy, memoizedColumns), + autoResetFilters: false, sortTypes: { number: sortNumber, // the builtin number type on react-table does not handle NaN values 'alphanumeric-insensitive': sortCaseInsensitive, // should be replace with the builtin string when react-table is upgraded, see https://github.com/tannerlinsley/react-table/pull/3235