@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.
@@ -11612,7 +11612,7 @@ function NavigationBottomSheet({
11612
11612
  snapPoints,
11613
11613
  maxDynamicContentSize,
11614
11614
  isVisible,
11615
- isExpanded,
11615
+ isExpanded = false,
11616
11616
  onClose
11617
11617
  }) {
11618
11618
  const bottomSheetRef = useBottomSheet();
@@ -11624,7 +11624,8 @@ function NavigationBottomSheet({
11624
11624
  }
11625
11625
  }, [bottomSheetRef, isVisible]);
11626
11626
  React.useEffect(() => {
11627
- if (isVisible && isExpanded) {
11627
+ if (!isVisible) return;
11628
+ if (isExpanded) {
11628
11629
  bottomSheetRef.current?.expand();
11629
11630
  } else {
11630
11631
  bottomSheetRef.current?.collapse();