Closed (fixed)
Project:
ImageX Blocks
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2023 at 22:04 UTC
Updated:
4 Oct 2023 at 18:09 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #4
tpzurdo commentedComment #5
tpzurdo commentedComment #6
carolpettirossi commentedI also faced this issue when I tried to create an Accordion Block.

I applied patch #5, and it solved the issue.
Comment #9
hfernandes commentedI noticed that with the `if`, the `loop.index` wasn't counting correctly, so I changed it to use the `filter` filter instead.
Here is one example, the first accordion item should be open by default. With the `if` approach, it wasn't. The item counter starts with 16.

Using `filter`, the first item is open and the counter is 1:

Moving it back to `Needs Review`.
Comment #10
aaronchristian commentedAhhh nice catch @ tpzurdo.
Thanks @carolpettirossi and @hfernandes, yep confirmed that this morning.
Thanks for the contributions back everyone.
Marking as RTBC, and I'll get this one merged into dev as well.
Comment #11
aaronchristian commentedComment #12
aaronchristian commented