react-resizable-panels icon indicating copy to clipboard operation
react-resizable-panels copied to clipboard

[BUG] Auto collapse not update expandToSizes

Open hungtcs opened this issue 1 month ago • 1 comments

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.

Image

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!

hungtcs avatar Nov 05 '25 13:11 hungtcs

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.

hungtcs avatar Nov 05 '25 13:11 hungtcs