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

View file

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

View file

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