From 38a318dc92005bb409bd3d97ab26286200465e86 Mon Sep 17 00:00:00 2001 From: Pat Udomprasert Date: Wed, 3 Apr 2024 13:25:33 -0400 Subject: [PATCH] Don't autoclose search if not in new mobile UI --- src/SolarEclipse2024.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/SolarEclipse2024.vue b/src/SolarEclipse2024.vue index 65f9bb1..0585bf5 100644 --- a/src/SolarEclipse2024.vue +++ b/src/SolarEclipse2024.vue @@ -3990,9 +3990,11 @@ export default defineComponent({ setLocationFromSearchFeature(feature: MapBoxFeature) { this.setLocationFromFeature(feature); this.textSearchSelectedLocations.push(feature.center); - setTimeout(() => { - this.searchOpen = false; - }, 3_000); + if (this.showNewMobileUI) { + setTimeout(() => { + this.searchOpen = false; + }, 3_000); + } }, reversePlaybackRate() {