diff --git a/src/geocoding.ts b/src/geocoding.ts index e75a89d..603c4fb 100644 --- a/src/geocoding.ts +++ b/src/geocoding.ts @@ -249,6 +249,8 @@ export function addSearchControl(map: L.Map, state: AppState, onNoResults: (mess const lng = parseFloat(li.dataset['lng'] ?? ''); if (isNaN(lat) || isNaN(lng)) return; const label = li.dataset['name'] ?? `${lat.toFixed(5)}, ${lng.toFixed(5)}`; + // Dropdown is z-index 2000; close it before the guidance pill appears. + hideDropdown(); void startGuidance(state, map, { lat, lng, label }, onNoResults); return; } diff --git a/src/style.css b/src/style.css index ab86a87..6b4965c 100644 --- a/src/style.css +++ b/src/style.css @@ -657,6 +657,7 @@ body { height: 100%; width: 100%; padding: 0; margin: 0; } } .geocode-bar--peek .geocode-bar__handle, +.geocode-bar--peek .geocode-bar__nav, .geocode-bar--peek .geocode-bar__copy, .geocode-bar--peek .geocode-bar__close, .geocode-bar--peek .geocode-bar__addr {