Hi community,
Is there any code or solution to always have one item active in a Nestable accordion? In other words, it is not possible to have all items closed at the same time.
Hi community,
Is there any code or solution to always have one item active in a Nestable accordion? In other words, it is not possible to have all items closed at the same time.
Hi Jolia,
Sorry, but I don’t understand the question.
Both sentences are contradictory, so I’m unsure what you’re trying to convey.
By default, all items in the accordion are closed. When you open an item and then click on another one, the previous one closes. If you click on the one that is already open, it closes.
If you activate “independent toggle,” the previous item remains open. However, you can close each item individually.
Hi @timmse, Thanks for the reply.
This feature does not allow all items to be closed. It doesn’t matter if it’s the first item or the Xth item. One must be open and cannot be closed.
Seems like you nested the accordion in itself, making it 1 single item. Thereby reacting as 1 single item.
It looks weird at first, but they are supposed to look like separate items, and when you remove the default margin you can stack them together, like 1 “single” accordion.