When onDismiss is called, the Bottom sheet is already hidden.

This commit is contained in:
Benoit Marty
2023-06-28 14:02:03 +02:00
committed by Benoit Marty
parent 14ed730754
commit d1fb808eed
2 changed files with 2 additions and 6 deletions
@@ -118,10 +118,8 @@ fun ActionListView(
}
fun onDismiss() {
sheetState.hide(coroutineScope) {
state.eventSink(ActionListEvents.Clear)
}
}
if (targetItem != null) {
ModalBottomSheet(
@@ -38,10 +38,8 @@ fun CustomReactionBottomSheet(
val coroutineScope = rememberCoroutineScope()
fun onDismiss() {
sheetState.hide(coroutineScope) {
state.eventSink(CustomReactionEvents.UpdateSelectedEvent(null))
}
}
fun onEmojiSelectedDismiss(emoji: Emoji) {
sheetState.hide(coroutineScope) {