Skip to content

v3.3.2

Choose a tag to compare

@redonkulus redonkulus released this 20 Oct 20:39
· 2 commits to master since this release

Fixes

  • Click tracking now respects e.preventDefault() called by your own click handlers (#627)
    • An I13nButton inside a <form> no longer submits the form when its onClick calls preventDefault() (#569)
    • An I13nAnchor no longer follows its href when a child element's onClick calls preventDefault() (#568)
    • Forms are submitted with form.requestSubmit() where supported, so onSubmit handlers and HTML form validation now run. Falls back to form.submit().

Behavior change

  • When i13n handles navigation for a tracked link or submit button, the redirect or submit now happens one tick (setTimeout(…, 0)) after the click, so every other click handler runs first. This is only noticeable when no plugin handles the click event; otherwise navigation already waited for the beacon.