Merge pull request #7181 from vvlladd28/bug/maps/tooltip/close-button

[3.4.2] UI: Fixed in map widgets close tooltip button
This commit is contained in:
Igor Kulikov 2022-09-01 18:16:23 +03:00 committed by GitHub
commit 35e5eb6887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,9 @@ export function createTooltip(target: L.Layer,
}
target.on('popupopen', () => {
bindPopupActions(popup, settings, datasource);
(target as any)._popup._closeButton.addEventListener('click', (event: Event) => {
event.preventDefault();
});
});
return popup;
}