Skip to content

Commit

Permalink
Fix #1275 plan: focus Leaflet when maximized
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed May 18, 2024
1 parent e9f1548 commit 8f5ce07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/plan-plugin/src/components/PlanComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 8f5ce07

Please sign in to comment.