Skip to content

Commit

Permalink
Merge pull request #43832 from software-mansion-labs/fix-focus-on-com…
Browse files Browse the repository at this point in the history
…poser

Do not trap focus on troubleshoot and save the world pages
  • Loading branch information
puneetlath authored Jun 24, 2024
2 parents 7489847 + 2cbb330 commit c693917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FocusTrap/FocusTrapForModal/index.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function FocusTrapForModal({children, active}: FocusTrapForModalProps) {
active={active}
focusTrapOptions={{
trapStack: sharedTrapStack,
allowOutsideClick: true,
clickOutsideDeactivates: true,
initialFocus: false,
fallbackFocus: document.body,
}}
Expand Down
2 changes: 2 additions & 0 deletions src/components/FocusTrap/WIDE_LAYOUT_INACTIVE_SCREENS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const WIDE_LAYOUT_INACTIVE_SCREENS: string[] = [
SCREENS.WORKSPACE.REPORT_FIELDS,
SCREENS.WORKSPACE.DISTANCE_RATES,
SCREENS.SEARCH.CENTRAL_PANE,
SCREENS.SETTINGS.TROUBLESHOOT,
SCREENS.SETTINGS.SAVE_THE_WORLD,
];

export default WIDE_LAYOUT_INACTIVE_SCREENS;

0 comments on commit c693917

Please sign in to comment.