fix(map): unify dismiss logic on map click

This commit is contained in:
2026-03-02 15:39:14 -05:00
parent ae55f0acbe
commit be8559bde4

View File

@ -179,7 +179,7 @@ async function initializeMap() {
if (map.value) { if (map.value) {
// PERFORMANCE: Use passive listeners for native events if added (Google Maps doesn't expose this directly easily) // PERFORMANCE: Use passive listeners for native events if added (Google Maps doesn't expose this directly easily)
map.value.addListener('click', () => { map.value.addListener('click', () => {
if (showETACard.value) showETACard.value = false; if (showETACard.value) handleETACardDismiss();
}); });
// Detect user interaction with the map to show/hide location button // Detect user interaction with the map to show/hide location button