I have a lightning component that looks like this:
<aura:iteration items="{!v.categories}" var="category">
<li data-category-id="{!v.category.Id}">
<ui:inputCheckbox change="{!c.selectCategory}"/>
</li>
</aura:iteration>
And I need to get the Id value in my controller. I've looked at examples, but properties and functions are never available on the event I'm receiving.
dataset isn't available, parentNode isn't available,... it feels like I'm having to fight the framework to do something that should be incredibly simple. What is the correct way to handle a situation like this?