Skip to content

Commit

Permalink
🐛 trying to fix data grid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pamellix committed Aug 14, 2024
1 parent d4dc2f6 commit 17e37c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ export const useDataGridDisplaySelector = (
}

const { onChange, ...currentGridStyles } = gridStyles;
initialStyles?.onChange?.(currentGridStyles);
}, [userGridStyles, allowResetButton]);
initialStyles?.onChange?.(currentGridStyles);
console.log("SUCCED Display Selector");
}, [userGridStyles, allowResetButton, gridStyles]);

useUpdateEffect(() => {
if (allowResetButton) {
Expand Down
2 changes: 1 addition & 1 deletion packages/eui/src/components/datagrid/data_grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const cellPaddingsToClassMap: {
const emptyVirtualizationOptions = {};

export const EuiDataGrid = memo(
forwardRef<EuiDataGridRefProps, EuiDataGridProps>((props, ref) => {
forwardRef<EuiDataGridRefProps, EuiDataGridProps>((props: { [x: string]: any; leadingControlColumns?: any; trailingControlColumns?: any; columns?: any; columnVisibility?: any; schemaDetectors?: any; rowCount?: any; renderCellValue?: any; cellContext?: any; renderCellPopover?: any; renderFooterCellValue?: any; className?: any; gridStyle?: any; toolbarVisibility?: any; pagination?: any; sorting?: any; inMemory?: any; onColumnResize?: any; minSizeForControls?: any; height?: any; width?: any; rowHeightsOptions?: any; virtualizationOptions?: any; renderCustomGridBody?: any; renderCustomToolbar?: any; }, ref: any) => {
const {
leadingControlColumns = emptyControlColumns,
trailingControlColumns = emptyControlColumns,
Expand Down

0 comments on commit 17e37c0

Please sign in to comment.