diff --git a/client/src/components/gps/Yandex21Map.tsx b/client/src/components/gps/Yandex21Map.tsx index cae6365..536704a 100644 --- a/client/src/components/gps/Yandex21Map.tsx +++ b/client/src/components/gps/Yandex21Map.tsx @@ -177,6 +177,8 @@ export function Yandex21Map({ const container = containerRef.current; if (!mapReady || !container) return; const handler = (ev: MouseEvent) => { + // ДИАГНОСТИКА кликов: убрать после починки + console.log('[GPS-DIAG] container click, target=', (ev.target as HTMLElement)?.tagName, (ev.target as HTMLElement)?.className?.toString?.().slice(0, 60)); const el = (ev.target as HTMLElement | null)?.closest?.('[data-gps-action]') as HTMLElement | null; if (!el) return; const action = el.dataset.gpsAction || ''; @@ -273,6 +275,8 @@ export function Yandex21Map({ // onClick вызывается только из элементов внутри balloon (делегирование) if (m.onClick && !m.popup) { placemark.events.add('click', () => { + // ДИАГНОСТИКА: убрать после починки + console.log('[GPS-DIAG] placemark click', m.id); markersByIdRef.current.get(String(m.id))?.onClick?.(); }); }