mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
User reported in discord. Radix components like accordion does not open first item by default when use with content block. The reason was in our default detection. We used indexes within ancestor and when put item inside of content block template it gets 0 but not rendered. Here improved the logic to reset index when render inside of block template. <img width="837" alt="Screenshot 2025-03-01 at 21 14 09" src="https://github.com/user-attachments/assets/788df39a-b7c5-466b-a80e-09cc40de9e3f" />