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(); }