Serge Huber created UNOMI-1046:
----------------------------------
Summary: Tracker: the site's own click handlers run twice on an
element tracked with sendClickEvent
Key: UNOMI-1046
URL: https://issues.apache.org/jira/browse/UNOMI-1046
Project: Apache Unomi
Issue Type: Sub-task
Components: unomi-tracker
Reporter: Serge Huber
Fix For: unomi-tracker-1.6.0, unomi-tracker-2.0.0
On a button or link whose clicks are sent with sendClickEvent, the site's own
click handlers run twice for each click: a toggle switches back, a counter
counts double, a menu opens and closes.
Cause: once the event is sent, the tracker dispatches the click again on the
element so that its default action happens (following the link, submitting the
form), and that copy also reaches all the page's listeners.
Fix: the copy is stopped before it reaches the page's listeners. Stopping it
does not cancel the default action, so the link is still followed and the form
still submitted. Covered by browser tests against each Unomi server (button and
link: the site's handler runs once per click).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)