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

pull/49384/head^2
Zoltán Bedi 3 years ago committed by GitHub
parent a9cc3225ba
commit 762a84153d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/grafana-ui/src/components/Table/Table.tsx

@ -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

Loading…
Cancel
Save