Skip to content

Commit

Permalink
Applied temporary fix to EditorsDirective to fix closeAll calls being…
Browse files Browse the repository at this point in the history
… unresponsive
  • Loading branch information
mattbrailsford committed Jul 19, 2021
1 parent 7872b07 commit 0262081
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Vendr.DemoStore.Web/Umbraco/Js/umbraco.directives.js
Expand Up @@ -6080,6 +6080,7 @@ Use this directive to construct a header inside the main editor window.
addEditor(args.editor);
}));
evts.push(eventsService.on('appState.editors.close', function (name, args) {

// remove the closed editor
if (args && args.editor) {
editorCount = editorCount - 1;
Expand All @@ -6089,6 +6090,7 @@ Use this directive to construct a header inside the main editor window.
if (args && !args.editor && args.editors.length === 0) {
editorCount = 0;
scope.editors = [];
focusLockService.removeInertAttribute();
}
}));
//ensure to unregister from all events!
Expand Down

0 comments on commit 0262081

Please sign in to comment.