[GH #6879] How does Handsontable keep collapsed columns after state change in react

Hello,

I am getting into a problem with @handsontable/react
My demo code: https://codesandbox.io/s/declaring-column-settings-zvzbg?file=/src/index.js
Steps:

  1. Collapse E column
  2. Click on Change state button to change data in settings state

Actual:
E column was expanded

expect:
E column should keep collapsing

My opinion:
After state of settings change, UI will be re-rendered. that why all of collapsed columns will be expanded by default
How can we keep collapsed columns in this case ?

Hi @duongtranfu

thank you for sharting the issue.
We have been reported by the same issue here https://github.com/handsontable/handsontable/issues/6879 but hasn’t found a fix yet.

I will update you once we get a solid fix or even a workaround.

Thank you very much, hopefully dev team fix this asap.

Hi @duongtranfu

I just wanted to let you know that we have just released Handsontable v8.4.0 that fixes this issue (reported at https://github.com/handsontable/handsontable/issues/6879)

Here’s a full list of changes for the version https://github.com/handsontable/handsontable/issues/7998

If you’d have any questions please feel free to send me an email at support@handsontable.com