Hey, if someone has been using this workaround to ...
# compose
e
Hey, if someone has been using this workaround to make the
ModalBottomSheet
not dismissable:
Copy code
properties = ModalBottomSheetProperties(shouldDismissOnBackPress = sheetState.isCancellable),
<...>
val state = rememberModalBottomSheetState(
    skipPartiallyExpanded = skipPartiallyExpanded,
    confirmValueChange = { isCancellable },
)
This is no longer working (the bottom sheet does not appear at all) after
compose-bom = "2025.09.01"
update. Fixed it like this:
Copy code
val state = rememberModalBottomSheetState(
    skipPartiallyExpanded = skipPartiallyExpanded,
    confirmValueChange = { newState ->
        isCancellable || (newState != SheetValue.Hidden)
    }
)
<...>
properties = ModalBottomSheetProperties(
    shouldDismissOnBackPress = sheetState.isCancellable,
    shouldDismissOnClickOutside = sheetState.isCancellable,
)
Hopefully this saves some time at least for some of you 😄
🙌 2