umami icon indicating copy to clipboard operation
umami copied to clipboard

If a click event is bubbled from its children, it will not be tracked

Open CNSeniorious000 opened this issue 6 months ago • 1 comments

Describe the feature or enhancement

If my DOM is like this:

<button data-umami-event="btn">
  <div>some icon</div>
<button>

If I clicked on the div (which is often), this event will not be raised. I think this is a common case.

Of course I can trigger an window?.umami.track manually in onclick function, but I think this enhancement is beneficial in most cases.

CNSeniorious000 avatar Jan 14 '24 10:01 CNSeniorious000

Confirmed, we'll get this fixed.

mikecao avatar Jan 15 '24 04:01 mikecao