v5
This commit is contained in:
parent
1ea2df1292
commit
242b727260
@ -29,6 +29,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (modalElement && window.bootstrap) {
|
if (modalElement && window.bootstrap) {
|
||||||
|
if (modalElement.parentElement !== document.body) {
|
||||||
|
document.body.appendChild(modalElement);
|
||||||
|
}
|
||||||
|
|
||||||
const modal = new window.bootstrap.Modal(modalElement);
|
const modal = new window.bootstrap.Modal(modalElement);
|
||||||
const titleNode = modalElement.querySelector('[data-calendar-title]');
|
const titleNode = modalElement.querySelector('[data-calendar-title]');
|
||||||
const bodyNode = modalElement.querySelector('[data-calendar-body]');
|
const bodyNode = modalElement.querySelector('[data-calendar-body]');
|
||||||
|
|||||||
@ -29,6 +29,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (modalElement && window.bootstrap) {
|
if (modalElement && window.bootstrap) {
|
||||||
|
if (modalElement.parentElement !== document.body) {
|
||||||
|
document.body.appendChild(modalElement);
|
||||||
|
}
|
||||||
|
|
||||||
const modal = new window.bootstrap.Modal(modalElement);
|
const modal = new window.bootstrap.Modal(modalElement);
|
||||||
const titleNode = modalElement.querySelector('[data-calendar-title]');
|
const titleNode = modalElement.querySelector('[data-calendar-title]');
|
||||||
const bodyNode = modalElement.querySelector('[data-calendar-body]');
|
const bodyNode = modalElement.querySelector('[data-calendar-body]');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user