@ornikar/kitt-universal 31.1.0 → 31.1.1

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.
@@ -11710,7 +11710,7 @@ function NavigationBottomSheet({
11710
11710
  snapPoints,
11711
11711
  maxDynamicContentSize,
11712
11712
  isVisible,
11713
- isExpanded,
11713
+ isExpanded = false,
11714
11714
  onClose
11715
11715
  }) {
11716
11716
  const bottomSheetRef = useBottomSheet();
@@ -11722,7 +11722,8 @@ function NavigationBottomSheet({
11722
11722
  }
11723
11723
  }, [bottomSheetRef, isVisible]);
11724
11724
  React.useEffect(() => {
11725
- if (isVisible && isExpanded) {
11725
+ if (!isVisible) return;
11726
+ if (isExpanded) {
11726
11727
  bottomSheetRef.current?.expand();
11727
11728
  } else {
11728
11729
  bottomSheetRef.current?.collapse();