You can get the AccordionItem instance using the Element.closest() method, like so: event.target.closest('smart-accordion-item'). Another approach is to use Event.composedPath() which will return all parents of the current target (including the AccordionItem).
this is exceptionally useful. you might consider adding this in the documentation.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.