indicator-ui 0.0.308 → 0.0.309

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
@@ -41955,8 +41955,10 @@ function useSmartPosition() {
41955
41955
  }
41956
41956
  };
41957
41957
  var configurateObj = function configurateObj() {
41958
- ref.current.style.position = position;
41959
- if (position === 'absolute' && parentRef) {
41958
+ if (ref !== null && ref !== void 0 && ref.current) {
41959
+ ref.current.style.position = position;
41960
+ }
41961
+ if (position === 'absolute' && parentRef !== null && parentRef !== void 0 && parentRef.current) {
41960
41962
  parentRef.current.style.position = 'relative';
41961
41963
  }
41962
41964
  };