compose-multiplatform
compose-multiplatform copied to clipboard
[JS, Canvas] Some composables like `Button` with externally defined `shape` argument cause crash when shape is `RoundedCornerShape` with one or more zero corners
BottomSheetScaffold
causes crash when sheetShape
is RoundedCornerShape
with one or more zero corners
EDIT: not only scaffold. Some other composables like Button
with externally defined shape
argument also causes crash
Affected platforms
- Web (K/JS) - Canvas based API
Versions
- Kotlin version: 1.8.10
- Compose Multiplatform version: 1.3.1
- OS version(s): Mac OS 13.3, Chrome
To Reproduce
fun App() {
onWasmReady {
Window {
BottomSheetScaffold(
sheetContent = {
Text("Content")
},
sheetShape = RoundedCornerShape(10.dp, 10.dp, 10.dp, 0.dp)
) {
}
}
}
}
Screenshots
Still reproduces in 1.4.0-rc03
Reproduced this crash on PR: https://github.com/JetBrains/compose-multiplatform-core/pull/503
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.