@idds/js 1.0.82 → 1.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.iife.js +3 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -991,6 +991,9 @@ var InaUI = (() => {
|
|
|
991
991
|
drawers.forEach((drawer) => {
|
|
992
992
|
if (drawer.__inaDrawerInitialized) return;
|
|
993
993
|
const isPersistent = drawer.getAttribute("data-persistent") === "true";
|
|
994
|
+
if (drawer.parentElement !== document.body) {
|
|
995
|
+
document.body.appendChild(drawer);
|
|
996
|
+
}
|
|
994
997
|
const closeBtns = drawer.querySelectorAll(
|
|
995
998
|
`.${PREFIX2}-drawer__close-button`
|
|
996
999
|
);
|
package/dist/index.js
CHANGED
|
@@ -985,6 +985,9 @@ function initDrawer(rootSelector = `.${PREFIX2}-drawer`) {
|
|
|
985
985
|
drawers.forEach((drawer) => {
|
|
986
986
|
if (drawer.__inaDrawerInitialized) return;
|
|
987
987
|
const isPersistent = drawer.getAttribute("data-persistent") === "true";
|
|
988
|
+
if (drawer.parentElement !== document.body) {
|
|
989
|
+
document.body.appendChild(drawer);
|
|
990
|
+
}
|
|
988
991
|
const closeBtns = drawer.querySelectorAll(
|
|
989
992
|
`.${PREFIX2}-drawer__close-button`
|
|
990
993
|
);
|