mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-24 14:04:09 +03:00
Change check for dynamic modal
This commit is contained in:
+2
-2
@@ -200,8 +200,8 @@ class Modal extends BaseComponent {
|
||||
}
|
||||
|
||||
_showElement(relatedTarget) {
|
||||
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
|
||||
// Don't move modal's DOM position
|
||||
// try to append dynamic modal
|
||||
if (!document.body.contains(this._element)) {
|
||||
document.body.append(this._element)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user