Skip to Main Content
Builder.io Ideas
Created by Guest
Created on Jun 30, 2022

DOMElement instance onclick

Imagine you have content like this:

<div class="parent">
<div class="child"></div>
</div>

Bind a click event to parent with custom JS.
When you click on child the event gets propagated to parent, so the click event gets triggered. In the event variable, you can access whithin event properties the domelement of child but not the parent domelement.

Would be nice to have this feature.

  • Attach files