mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Change check for dynamic modal
This commit is contained in:
parent
fc33ce4b46
commit
92e664c921
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user