Closed hm-tamim closed 1 month ago
Can we also report this on Compose Multiplatform Issues ? It should not have different behaviors, the same code in both platforms.
Hi @DevSrSouza
I think this one is related https://github.com/JetBrains/compose-multiplatform/issues/4434
Thank you for this PR! I just saw this issue myself. Plz cut a new alpha release?
Issue details: https://github.com/adrielcafe/voyager/issues/330 Affected Platform: iOS Compose version: 1.6.0
It seems the culprit is
confirmValueChange
inrememberModalBottomSheetState
, it's usingrememberSaveable
whereconfirmValueChange
is used as a key. When this method changes in iOS somehow when you open keyboard or any other thing that causes recomposition, it recreates the sheet state, which hides the bottom sheet modal.Removing
confirmValueChange
and usingLaunchedEffect
to observesheetState.currentValue
solves the issue.