[data grid] onColumnWidthChange called before autosize affects column width #12005
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
feature: Column resize
Steps to reproduce
Link to live example: https://react-tud9tc.stackblitz.io
Steps:
Current behavior
onColumnWidthChange
gets called before autosizing is completed. It is instead called with the column width before autosizing. The second time autosizing callsonColumnWidthChange
again, this time with the correct width.Expected behavior
onColumnWidthChange
gets called with the new column width after autosizing is completedContext
Saving column widths changed by the user in external storage, so it can be retrieved and applied if the same DataGrid is opened again by said user.
Your environment
Used Chrome 121.0.6167.141 even though not listednpx @mui/envinfo
Search keywords: autosize
The text was updated successfully, but these errors were encountered: