The community members are discussing an issue with a Radix accordion inside a Content Block. The main problem is that the first accordion item is not open by default when the accordion is inside a Content Block, even though it works as expected when the accordion is outside the Content Block.
The community members suggest that the issue might be related to the accordion items having empty values, and that the default value of 0 is causing the first item to be considered as the template and not the actual first item. They also discuss the possibility of skipping the template item when computing the index value.
The issue was eventually fixed, as mentioned in the last comment, which includes a link to the pull request that addressed the problem.
I there any chance to keep first radix accordion inside content block open? It seems like it considers content block template as a first one and it stays open while actual first item it considers as second one and it's closed.
Yes. I mean default open item. If I use accordion outside content block - it has first item open by default. If I use accordion inside content block - it considers first item a content block template accordion and keeps it open, so real first item is not open.