From b167c388691a2743a11994e285e8f2e4c0d7219e Mon Sep 17 00:00:00 2001 From: Michel Drescher Date: Tue, 12 Jan 2021 12:37:55 +0000 Subject: [PATCH] BUGFIX: Use of non-standard elements in mouse events --- src/client/js/radar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/js/radar.js b/src/client/js/radar.js index 436e9ac..de8ad41 100644 --- a/src/client/js/radar.js +++ b/src/client/js/radar.js @@ -441,7 +441,7 @@ if (editProjectLinks) { editProjectLinks.forEach((link) => { link.addEventListener('click', async (event) => { event.preventDefault() - location.assign(event.path[1].getAttribute('route')) + location.assign(event.target.parentNode.getAttribute('route')) }) }) }