@idds/js 1.0.82 → 1.0.84

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.
@@ -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
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idds/js",
3
- "version": "1.0.82",
3
+ "version": "1.0.84",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },