Skip to content

Commit

Permalink
width of the new column added
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharyar-shamshi committed Feb 20, 2024
1 parent 417c43d commit cd8cc5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ export const useGridColumnResize = (
const width: number = column.width as number;
apiRef.current.publishEvent('columnWidthChange', {
element: apiRef.current.getColumnHeaderElement(colDefRef.current.field),
colDef: colDefRef.current,
colDef: { ...colDefRef.current, width },
width,
});
}
Expand Down

0 comments on commit cd8cc5b

Please sign in to comment.