Hi,
I'm trying to get the accordions to work and it's almost there.
Now if I have multiple groups, the last accordion item will stay open. I would like them to all be closed by default.
I tried changing maybe the first one to open and there was no change.
Any suggestions is appreciated.
Thank you
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | field_group-accordion_item_open_state-2984756-6.patch | 1.05 KB | cbrody |
Comments
Comment #2
lblissett commentedYes, i am struggling with exact the same behavior. The last accordion item always stays open.
Comment #3
lblissett commented@surfkid:
What you can try is this:
Change here:
src/Element/AccordionItem.phpone line of code in the module for the accodion item from TRUE to FALSE like this (and make a cache rebuild afterwards).
At least it seems. that this hack works for me.
Comment #4
surfkid commentedThat worked! Thank you. This should be committed as well.
Comment #5
cbrody commentedHere's a patch I made which seems to resolve the issue.
Comment #6
cbrody commentedSorry that didn't work, try this one.
Comment #7
cbrody commentedComment #9
nils.destoop commentedThx for the patch. I have committed this to dev
Comment #10
johnpitcairn commentedComment #11
johnpitcairn commented(sorry that was unintentional)