mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 08:39:56 +02:00
Fix issue where the edit menu would not disappear sometimes (close #7143)
Properly disable dragging the map under the edit menu for pointer events (re: #5505)
This commit is contained in:
@@ -146,9 +146,7 @@ export function modeSelect(context, selectedIDs) {
|
||||
|
||||
|
||||
function closeMenu() {
|
||||
if (editMenu) {
|
||||
context.map().supersurface.call(editMenu.close);
|
||||
}
|
||||
if (editMenu) editMenu.close();
|
||||
}
|
||||
|
||||
|
||||
@@ -264,6 +262,9 @@ export function modeSelect(context, selectedIDs) {
|
||||
}
|
||||
});
|
||||
|
||||
// remove the existing menu element, if any
|
||||
closeMenu();
|
||||
|
||||
editMenu = uiEditMenu(context, operations);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user