[openstreetmap/openstreetmap-website] Remove link targets while dragging the map (PR #6265)
mmd
notifications at github.com
Mon Jul 28 20:29:48 UTC 2025
mmd-osm left a comment (openstreetmap/openstreetmap-website#6265)
I believe the click is triggered by this "a" link handler in index.js. Once I do a preventDefault / stopPropagation on the event, I'm no longer redirected to the changeset page.
```
$(document).on("click", "a", function (e) {
if (e.isDefaultPrevented() || e.isPropagationStopped() || $(e.target).data("turbo")) {
return;
}
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6265#issuecomment-3129581338
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6265/c3129581338 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250728/3af5d1ee/attachment.htm>
More information about the rails-dev
mailing list