Merge branch 'MDL-88070-main' of https://github.com/sh-csg/moodle
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
@@ -947,7 +947,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