Skip to content

Commit

Permalink
Handle bottom sheet click outside when not visible (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
DevNatan authored Oct 4, 2023
1 parent cbe49cd commit 1667c0b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ public class BottomSheetNavigator internal constructor(
if (isVisible) {
sheetState.hide()
replaceAll(HiddenBottomSheetScreen)
} else if (sheetState.targetValue == ModalBottomSheetValue.Hidden) {
// Swipe down - sheetState is already hidden here so `isVisible` is false
replaceAll(HiddenBottomSheetScreen)
}
}
}
Expand Down

0 comments on commit 1667c0b

Please sign in to comment.