[accordion][collapsible] With CSS transitions the panel does not resize when content size changes #1458
Labels
bug 🐛
Something doesn't work
component: accordion
This is the name of the generic UI component, not the React module!
component: collapsible
This is the name of the generic UI component, not the React module!
Bug report
Current behavior
I have a resizable sidebar and a group of collapsible. The problem is, that whenever I resize the collapsible or delete an element from the collapsible, it doesn't resize, and it leads to annoying bugs



Idle:
Deleted Element:
Fully Expanded Sidebar:
Now when I close the collapsible and reopen it, it does account for the new size, but I wish that it would observe the size change (maybe using ResizeObserver) and account for it
Expected behavior
I wanted the collapsible to resize according to the new change
Reproducible example
Just create a collapsible, and try using states to remove one of the elements (like using a map) or shrink it
Base UI version
v1.0.0-alpha.6
Which browser are you using?
Microsoft Webview2 (on wails)
Which OS are you using?
Windows 11
Which assistive tech are you using (if applicable)?
Voiceover/JAWS etc.
Additional context
Provide any additional context that might help us identify the problem and find a solution.
The text was updated successfully, but these errors were encountered: