@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.
@@ -11589,7 +11589,7 @@ function NavigationBottomSheet({
11589
11589
  snapPoints,
11590
11590
  maxDynamicContentSize,
11591
11591
  isVisible,
11592
- isExpanded,
11592
+ isExpanded = false,
11593
11593
  onClose
11594
11594
  }) {
11595
11595
  const bottomSheetRef = useBottomSheet();
@@ -11601,7 +11601,8 @@ function NavigationBottomSheet({
11601
11601
  }
11602
11602
  }, [bottomSheetRef, isVisible]);
11603
11603
  useEffect(() => {
11604
- if (isVisible && isExpanded) {
11604
+ if (!isVisible) return;
11605
+ if (isExpanded) {
11605
11606
  bottomSheetRef.current?.expand();
11606
11607
  } else {
11607
11608
  bottomSheetRef.current?.collapse();