summaryrefslogtreecommitdiff
path: root/resources/views/modules/pedigree-map/chart.phtml
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2023-04-03 22:32:53 +0100
committerGreg Roach <greg@subaqua.co.uk>2023-04-03 22:37:36 +0100
commitaeaf8337bfb1f3488d93a112539232ca2c91cdc2 (patch)
treee3bd64e0fdcffe53d8b6c67354798ea49488571d /resources/views/modules/pedigree-map/chart.phtml
parent2210ec835179836edcccab2d4e4acfcc5f6b4f74 (diff)
downloadwebtrees-aeaf8337bfb1f3488d93a112539232ca2c91cdc2.tar.gz
webtrees-aeaf8337bfb1f3488d93a112539232ca2c91cdc2.tar.bz2
webtrees-aeaf8337bfb1f3488d93a112539232ca2c91cdc2.zip
Fix: #4774 - Clicking on ancestor in pedigree map scrolls to top of page
Diffstat (limited to 'resources/views/modules/pedigree-map/chart.phtml')
-rw-r--r--resources/views/modules/pedigree-map/chart.phtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/resources/views/modules/pedigree-map/chart.phtml b/resources/views/modules/pedigree-map/chart.phtml
index 85f9d89d6f..2660991c0e 100644
--- a/resources/views/modules/pedigree-map/chart.phtml
+++ b/resources/views/modules/pedigree-map/chart.phtml
@@ -110,6 +110,7 @@ use Fisharebest\Webtrees\View;
// Activate marker popup when sidebar entry clicked
sidebar.addEventListener('click', (e) => {
if (e.target.matches('[data-wt-sosa]')) {
+ e.preventDefault();
map.closePopup();
let marker = markers.getLayers().filter(function (v) {