Ensure map marker clicks preserve search context

Fixes the back button just closing the sidebar and clearing the whole
search after having seleted a result via map marker
This commit is contained in:
2026-03-23 16:32:49 +04:00
parent 46605dbd32
commit 818ec35071
7 changed files with 45 additions and 25 deletions

View File

@@ -11,6 +11,8 @@ export default class SearchTemplate extends Component {
selectPlace(place) {
if (place) {
this.mapUi.returnToSearch = true;
// We don't need to manually set currentSearch here because
// it was already set in the route's setupController
this.router.transitionTo('place', place);
}
}