Browse Source
Merge pull request #7181 from vvlladd28/bug/maps/tooltip/close-button
[3.4.2] UI: Fixed in map widgets close tooltip button
pull/7199/head
Igor Kulikov
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts
|
|
|
@ -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; |
|
|
|
} |
|
|
|
|