This commit is contained in:
Huong Nguyen
2024-06-13 09:53:53 +07:00
3 changed files with 7 additions and 2 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
View File
@@ -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);
});
}