From 98266d462c5821327d8d4320a08224447c370e8a Mon Sep 17 00:00:00 2001 From: Matt Brailsford Date: Mon, 19 Jul 2021 11:01:32 +0100 Subject: [PATCH] Removes `inert` attribute when `editorService.closeAll()` is called 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 1f4cc81af8c5ce7b286238e29773f8a2be9c4182) --- .../directives/components/editor/umbeditors.directive.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditors.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditors.directive.js index 590f9627ab..1c9c85b075 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditors.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditors.directive.js @@ -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(); } }));