Merge branch 'MDL-88070-501' of https://github.com/sh-csg/moodle into MOODLE_501_STABLE

This commit is contained in:
Huong Nguyen
2026-03-24 08:40:22 +07:00
3 changed files with 7 additions and 3 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+5 -1
View File
@@ -916,7 +916,11 @@ export default class Modal {
hideIfNotForm() {
const formElement = this.modal.find(SELECTORS.FORM);
if (formElement.length == 0) {
this.hide();
if (this.removeOnClose) {
this.destroy();
} else {
this.hide();
}
}
}