Skip to content

Commit

Permalink
Removes inert attribute when editorService.closeAll() is called
Browse files Browse the repository at this point in the history
Fixes #10708 by removing the `inert` attribute on `#mainWrapper` when `editorService.closeAll()` is called.

This code is necessary because when close all is called, there is no editor passed, and so `removeEditor` is never called, and so the `focusLockService.removeInertAttribute();` method isn't called. I add to the if block that handles the close all code instead.

(cherry picked from commit 1f4cc81)
  • Loading branch information
mattbrailsford authored and nul800sebastiaan committed Jul 22, 2021
1 parent 3def2ee commit 98266d4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@
// close all editors
if (args && !args.editor && args.editors.length === 0) {
editorCount = 0;
scope.editors = [];
scope.editors = [];
// Remove the inert attribute from the #mainwrapper
focusLockService.removeInertAttribute();
}
}));

Expand Down

0 comments on commit 98266d4

Please sign in to comment.