Merge branch 'MDL-69514' of https://github.com/pedrojordao/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
@@ -925,6 +925,11 @@ export default class Modal {
|
||||
$(document.body).append(this.getRoot());
|
||||
}
|
||||
|
||||
// Closes popover elements that are inside the modal at the time the modal is closed.
|
||||
this.getRoot().find('[data-toggle="popover"]').each(function() {
|
||||
document.getElementById(this.getAttribute('aria-describedby'))?.remove();
|
||||
});
|
||||
|
||||
this.root.trigger(ModalEvents.hidden, this);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user