diff options
Diffstat (limited to 'src/editor.mjs')
-rw-r--r-- | src/editor.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editor.mjs b/src/editor.mjs index 02df642..84144af 100644 --- a/src/editor.mjs +++ b/src/editor.mjs | |||
@@ -413,7 +413,7 @@ const menuForEditor = (event, menu) => { | |||
413 | menu.appendChild(switchToEditingMode) | 413 | menu.appendChild(switchToEditingMode) |
414 | } | 414 | } |
415 | 415 | ||
416 | const map = dumbyContainer.querySelector('#' + menu.dataset.map) | 416 | const map = event.target.closest('.mapclay') |
417 | if (map) { | 417 | if (map) { |
418 | const item = new menuItem.Item({ | 418 | const item = new menuItem.Item({ |
419 | text: 'Add Anchor for GeoLinks', | 419 | text: 'Add Anchor for GeoLinks', |