From c8ed4a924d4912fe8869685649e0e39c7f09ae61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=88mer=20Duran?= Date: Tue, 11 Nov 2025 18:27:52 +0100 Subject: [PATCH] Frontend: Add focus management and view hooks to location dialog #5313 --- frontend/src/component/location/dialog.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/location/dialog.vue b/frontend/src/component/location/dialog.vue index 92b45a85b..9addbbc1a 100644 --- a/frontend/src/component/location/dialog.vue +++ b/frontend/src/component/location/dialog.vue @@ -12,7 +12,7 @@ @after-enter="afterEnter" @after-leave="afterLeave" > - + mdi-close @@ -207,11 +207,13 @@ export default { } }, afterEnter() { + this.$view.enter(this); if (this.currentLat && this.currentLng && !(this.currentLat === 0 && this.currentLng === 0)) { this.fetchLocationInfo(this.currentLat, this.currentLng); } }, afterLeave() { + this.$view.leave(this); this.location = null; this.locationLoading = false; this.resetSearchState();