Merge branch 'MDL-88070-501' of https://github.com/sh-csg/moodle into MOODLE_501_STABLE
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user