inovua / reactdatagrid

Empower Your Data with the best React Data Grid there is
https://reactdatagrid.io
Other
3.45k stars 57 forks source link

Autosize all columns function crashes when there is rowspan configuration set for columns. #394

Open vasyl-hordynskyy opened 8 months ago

vasyl-hordynskyy commented 8 months ago

Relevant code or config Rowspan is enabled for cels.

What you did: I used the default example for cell rowspan and colspan from the documentation (https://reactdatagrid.io/docs/cell-rowspan-and-colspan). In this example, when I open the column menu for a specific column and select the 'Autosize all columns' option, the column widths do not change, and an error is logged in the console. What happened: Error in console cannot read properties of undefined on Autosize all columns menu click.

image

Reproduction repository: App example

Problem description: Auto size all columns functionality does not work when cell has rowspan option configured.

Suggested solution: