mirror of
https://github.com/symfony/ux-leaflet-map.git
synced 2026-03-24 00:52:09 +01:00
[Map][Leaflet] Fix InfoWindow auto-opening
This commit is contained in:
2
assets/dist/map_controller.js
vendored
2
assets/dist/map_controller.js
vendored
@@ -307,7 +307,7 @@ var map_controller_default = class extends abstract_map_controller_default {
|
||||
if (autoClose) {
|
||||
this.closePopups();
|
||||
}
|
||||
element.openPopup();
|
||||
setTimeout(() => element.openPopup(), 0);
|
||||
}
|
||||
const popup = element.getPopup();
|
||||
if (!popup) {
|
||||
|
||||
@@ -266,7 +266,7 @@ export default class extends AbstractMapController<
|
||||
this.closePopups();
|
||||
}
|
||||
|
||||
element.openPopup();
|
||||
setTimeout(() => element.openPopup(), 0);
|
||||
}
|
||||
|
||||
const popup = element.getPopup();
|
||||
|
||||
Reference in New Issue
Block a user