indicator-ui 0.0.367 → 0.0.368

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
@@ -48163,11 +48163,15 @@ function useBackgroundModalAnim() {
48163
48163
  var backdropRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
48164
48164
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
48165
48165
  init();
48166
+ return umount;
48166
48167
  }, []);
48167
48168
  var init = function init() {
48168
48169
  initObjStates();
48169
48170
  initBackdropObj();
48170
48171
  };
48172
+ var umount = function umount() {
48173
+ removeBackdropObj();
48174
+ };
48171
48175
  var calcPredictPlace = function calcPredictPlace() {
48172
48176
  var obj = ref.current;
48173
48177
  if (obj) {
@@ -48295,6 +48299,9 @@ function useBackgroundModalAnim() {
48295
48299
  document.body.appendChild(backdrop);
48296
48300
  backdropRef.current = backdrop;
48297
48301
  }
48302
+ function removeBackdropObj() {
48303
+ if (backdropRef.current) backdropRef.current.remove();
48304
+ }
48298
48305
  function setHiddeState() {
48299
48306
  var obj = ref.current;
48300
48307
  var backdrop = backdropRef.current;
@@ -48399,12 +48406,16 @@ function useModalAnim() {
48399
48406
  }, smartPlacementOptions));
48400
48407
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
48401
48408
  init();
48409
+ return umount;
48402
48410
  }, []);
48403
48411
  var init = function init() {
48404
48412
  initObjStates();
48405
48413
  initBackdropObj();
48406
48414
  smartPlacementServices.init();
48407
48415
  };
48416
+ var umount = function umount() {
48417
+ removeBackdropObj();
48418
+ };
48408
48419
  var getObjData = function getObjData() {
48409
48420
  var target = targetRef === null || targetRef === void 0 ? void 0 : targetRef.current;
48410
48421
  var obj = ref.current;
@@ -48526,6 +48537,9 @@ function useModalAnim() {
48526
48537
  document.body.appendChild(backdrop);
48527
48538
  backdropRef.current = backdrop;
48528
48539
  }
48540
+ function removeBackdropObj() {
48541
+ if (backdropRef.current) backdropRef.current.remove();
48542
+ }
48529
48543
  function setHiddeState() {
48530
48544
  var obj = ref.current;
48531
48545
  var backdrop = backdropRef.current;