You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LinkTracker explicitly causes navigation to occur after tracking, which is fine for most types of links, however there are some circumstances where the link has other behaviors associated with it, and the navigation has already been prevented through preventDefault.
In these cases, LinkTracker will continue to make the link navigate to its location.
Please update the event_handler to also check evt.defaultPrevented before attempting to force a navigation.
As a simple example, the following link should not change the URL when clicked on:
LinkTracker
explicitly causes navigation to occur after tracking, which is fine for most types of links, however there are some circumstances where the link has other behaviors associated with it, and the navigation has already been prevented throughpreventDefault
.In these cases,
LinkTracker
will continue to make the link navigate to its location.Please update the
event_handler
to also checkevt.defaultPrevented
before attempting to force a navigation.As a simple example, the following link should not change the URL when clicked on:
The text was updated successfully, but these errors were encountered: