@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.
@@ -11686,7 +11686,7 @@ function NavigationBottomSheet({
11686
11686
  snapPoints,
11687
11687
  maxDynamicContentSize,
11688
11688
  isVisible,
11689
- isExpanded,
11689
+ isExpanded = false,
11690
11690
  onClose
11691
11691
  }) {
11692
11692
  const bottomSheetRef = useBottomSheet();
@@ -11698,7 +11698,8 @@ function NavigationBottomSheet({
11698
11698
  }
11699
11699
  }, [bottomSheetRef, isVisible]);
11700
11700
  useEffect(() => {
11701
- if (isVisible && isExpanded) {
11701
+ if (!isVisible) return;
11702
+ if (isExpanded) {
11702
11703
  bottomSheetRef.current?.expand();
11703
11704
  } else {
11704
11705
  bottomSheetRef.current?.collapse();