Merge branch 'MDL-73012-master' of https://github.com/ferranrecio/moodle

This commit is contained in:
Jun Pataleta
2023-04-20 16:32:15 +08:00
3 changed files with 6 additions and 2 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -219,6 +219,8 @@ export default class extends BaseComponent {
event.preventDefault();
const pendingModalReady = new Pending(`courseformat/actions:prepareMoveSectionModal`);
// The section edit menu to refocus on end.
const editTools = this._getClosestActionMenuToogler(target);
@@ -282,6 +284,8 @@ export default class extends BaseComponent {
this.reactive.dispatch('sectionMoveAfter', sectionIds, target.dataset.id);
this._destroyModal(modal, editTools);
});
pendingModalReady.resolve();
}
/**