react-resizable-panels
react-resizable-panels copied to clipboard
[BUG] Auto collapse not update expandToSizes
When the panel is collapsed, the expandtoSizes in localStorage will automatically update to restore its size when the panel is expanded.
But if auto-collapse is enabled, it won't update.
This causes the expanded size to be inconsistent with the size before collapsing.
Hopeful behavior: Before automatic collapsing, it can store the size before collapsed.
I read the documentation carefully and tried the existing APIs currently unable to do this.
Thank you!
https://github.com/user-attachments/assets/0469d001-ad27-4234-855c-5259777806e6
When the button is clicked to trigger collapse, the state is saved correctly. But when dragging triggers collapse, the state is not saved.