Skip to content

Commit

Permalink
Don't autoclose search if not in new mobile UI
Browse files Browse the repository at this point in the history
  • Loading branch information
patudom committed Apr 3, 2024
1 parent 5d7e5bd commit 38a318d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/SolarEclipse2024.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 38a318d

Please sign in to comment.