Table: Fix don't reset filter on resize (#48421)

This commit is contained in:
Zoltán Bedi
2022-05-23 06:26:29 -07:00
committed by GitHub
parent a9cc3225ba
commit 762a84153d

View File

@@ -183,6 +183,7 @@ export const Table: FC<Props> = 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