Skip to main content
5 events
when toggle format what by license comment
Jun 20, 2019 at 5:42 comment added Omkar K Hi Zuzana, Thanks for the comment, but if you try above code, you will see that accordian has problems in rendering when created dynamically inside aura iteration. That time if you try to set activeSections, just after resetting object list, it won't work, probably because at the time this statement being executed immediately after re-rendering of accordian sections, re-rendering is still in progress. But when you set a timeout of say 30-50 ms, it works perfectly fine. if you set timeout to 10ms, you can see re-rendering in a flash.
Jun 15, 2019 at 20:21 comment added Zuzana Well my point was, that you don't have to use any workarounds as the accordion works perfectly fine by default. But I'm glad you made it work your way! :)
Jun 4, 2019 at 7:13 comment added Omkar K Thanks Zuzana. I figured out a workaround. After I am resetting and reassigning my iteration object, I am calling setTimeout for 50 miliSec to set activeSections. A bit flick is observed in UI, but it works. setTimeout(function(){ component.set("v.activeSections", activeSectionsNew); }, 50);
May 31, 2019 at 22:05 review First posts
Jun 1, 2019 at 12:48
May 31, 2019 at 22:02 history answered Zuzana CC BY-SA 4.0