indicator-ui 0.0.382 → 0.0.384

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.js CHANGED
@@ -48673,6 +48673,7 @@ function useBackgroundModalAnim() {
48673
48673
  }
48674
48674
  }
48675
48675
  function initBackdropObj() {
48676
+ var _ref$current;
48676
48677
  if (backdropRef.current) backdropRef.current.remove();
48677
48678
  var backdrop = document.createElement('div');
48678
48679
  backdrop.style.position = 'fixed';
@@ -48682,7 +48683,7 @@ function useBackgroundModalAnim() {
48682
48683
  backdrop.style.left = '0';
48683
48684
  backdrop.style.visibility = 'hidden';
48684
48685
  backdrop.className = backdropClassName || '';
48685
- document.body.appendChild(backdrop);
48686
+ (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.parentElement.appendChild(backdrop);
48686
48687
  backdropRef.current = backdrop;
48687
48688
  }
48688
48689
  function removeBackdropObj() {
@@ -48913,6 +48914,7 @@ function useModalAnim() {
48913
48914
  }
48914
48915
  }
48915
48916
  function initBackdropObj() {
48917
+ var _ref$current;
48916
48918
  if (backdropRef.current) backdropRef.current.remove();
48917
48919
  var backdrop = document.createElement('div');
48918
48920
  backdrop.style.position = 'fixed';
@@ -48922,7 +48924,7 @@ function useModalAnim() {
48922
48924
  backdrop.style.left = '0';
48923
48925
  backdrop.style.visibility = 'hidden';
48924
48926
  backdrop.className = backdropClassName || '';
48925
- document.body.appendChild(backdrop);
48927
+ (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.parentElement.appendChild(backdrop);
48926
48928
  backdropRef.current = backdrop;
48927
48929
  }
48928
48930
  function removeBackdropObj() {