From b2adcf817c3ca0570f87a887c86cab7c80c5b1ca Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Thu, 1 Sep 2022 10:54:47 +0300 Subject: [PATCH] UI: Fixed in map widgets after click close tooltip button redirect to home page --- .../app/modules/home/components/widget/lib/maps/maps-utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts index 528172b2ba..f8e42d34e1 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts +++ b/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; }