TablePanel: Do not allow auto-reset (#67477)
disallow react table to autoreset
This commit is contained in:
@@ -120,6 +120,7 @@ export const Table = memo((props: Props) => {
|
|||||||
data: memoizedData,
|
data: memoizedData,
|
||||||
disableResizing: !resizable,
|
disableResizing: !resizable,
|
||||||
stateReducer: stateReducer,
|
stateReducer: stateReducer,
|
||||||
|
autoResetPage: false,
|
||||||
initialState: getInitialState(initialSortBy, memoizedColumns),
|
initialState: getInitialState(initialSortBy, memoizedColumns),
|
||||||
autoResetFilters: false,
|
autoResetFilters: false,
|
||||||
sortTypes: {
|
sortTypes: {
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ export function TablePanel(props: Props) {
|
|||||||
const tableElement = (
|
const tableElement = (
|
||||||
<Table
|
<Table
|
||||||
height={tableHeight}
|
height={tableHeight}
|
||||||
// This calculation is to accommodate the optionally rendered Row Numbers Column
|
|
||||||
width={width}
|
width={width}
|
||||||
data={main}
|
data={main}
|
||||||
noHeader={!options.showHeader}
|
noHeader={!options.showHeader}
|
||||||
|
|||||||
Reference in New Issue
Block a user