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 2ec0382b3f
commit 19792bac8a
2 changed files with 2 additions and 6 deletions

View file

@ -118,9 +118,7 @@ fun ActionListView(
} }
fun onDismiss() { fun onDismiss() {
sheetState.hide(coroutineScope) { state.eventSink(ActionListEvents.Clear)
state.eventSink(ActionListEvents.Clear)
}
} }
if (targetItem != null) { if (targetItem != null) {

View file

@ -38,9 +38,7 @@ fun CustomReactionBottomSheet(
val coroutineScope = rememberCoroutineScope() val coroutineScope = rememberCoroutineScope()
fun onDismiss() { fun onDismiss() {
sheetState.hide(coroutineScope) { state.eventSink(CustomReactionEvents.UpdateSelectedEvent(null))
state.eventSink(CustomReactionEvents.UpdateSelectedEvent(null))
}
} }
fun onEmojiSelectedDismiss(emoji: Emoji) { fun onEmojiSelectedDismiss(emoji: Emoji) {