From 8f5ce0789e46b470f843907abf37b31b5ba92227 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 18 May 2024 16:47:15 +0200 Subject: [PATCH] Fix #1275 plan: focus Leaflet when maximized --- packages/plan-plugin/src/components/PlanComponent.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/plan-plugin/src/components/PlanComponent.ts b/packages/plan-plugin/src/components/PlanComponent.ts index 280defa1f..f2b39720d 100644 --- a/packages/plan-plugin/src/components/PlanComponent.ts +++ b/packages/plan-plugin/src/components/PlanComponent.ts @@ -304,6 +304,10 @@ export class PlanComponent extends AbstractComponent { utils.toggleClass(this.container, 'psv-plan--maximized', this.state.maximized); + if (this.state.maximized) { + this.map.getContainer().focus(); + } + this.maximizeButton?.update(); }