@ornikar/kitt-universal 31.0.1 → 31.0.2-canary.e53cdb7e12a8aa3be6ae21c546ec9bcaca9b660c.0

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.es.js CHANGED
@@ -11833,7 +11833,8 @@ function NavigationBottomSheet(_ref) {
11833
11833
  snapPoints = _ref.snapPoints,
11834
11834
  maxDynamicContentSize = _ref.maxDynamicContentSize,
11835
11835
  isVisible = _ref.isVisible,
11836
- isExpanded = _ref.isExpanded,
11836
+ _ref$isExpanded = _ref.isExpanded,
11837
+ isExpanded = _ref$isExpanded === void 0 ? false : _ref$isExpanded,
11837
11838
  onClose = _ref.onClose;
11838
11839
  var bottomSheetRef = useBottomSheet();
11839
11840
  useEffect(function () {
@@ -11846,7 +11847,8 @@ function NavigationBottomSheet(_ref) {
11846
11847
  }
11847
11848
  }, [bottomSheetRef, isVisible]);
11848
11849
  useEffect(function () {
11849
- if (isVisible && isExpanded) {
11850
+ if (!isVisible) return;
11851
+ if (isExpanded) {
11850
11852
  var _bottomSheetRef$curre3;
11851
11853
  (_bottomSheetRef$curre3 = bottomSheetRef.current) === null || _bottomSheetRef$curre3 === void 0 || _bottomSheetRef$curre3.expand();
11852
11854
  } else {