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:
commit
35e5eb6887
@ -45,6 +45,9 @@ export function createTooltip(target: L.Layer,
|
|||||||
}
|
}
|
||||||
target.on('popupopen', () => {
|
target.on('popupopen', () => {
|
||||||
bindPopupActions(popup, settings, datasource);
|
bindPopupActions(popup, settings, datasource);
|
||||||
|
(target as any)._popup._closeButton.addEventListener('click', (event: Event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
return popup;
|
return popup;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user