Skip to content

Commit c1a0de9

Browse files
authored
fix: exception for sub activity (#51)
1 parent 0ca388a commit c1a0de9

File tree

1 file changed

+7
-5
lines changed
  • miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic

1 file changed

+7
-5
lines changed

miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/ListPopup.kt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,12 @@ fun ListPopup(
150150
Box(
151151
modifier = popupModifier
152152
.pointerInput(Unit) {
153-
detectTapGestures {
154-
dismissPopup(show)
155-
onDismissRequest?.let { it1 -> it1() }
156-
}
153+
detectTapGestures(
154+
onTap = {
155+
dismissPopup(show)
156+
onDismissRequest?.let { it1 -> it1() }
157+
}
158+
)
157159
}
158160
.layout { measurable, constraints ->
159161
val placeable = measurable.measure(
@@ -403,4 +405,4 @@ object ListPopupDefaults {
403405
}
404406
}
405407

406-
val listPopupStates = mutableStateListOf<MutableState<Boolean>>()
408+
val listPopupStates = mutableStateListOf<MutableState<Boolean>>()

0 commit comments

Comments
 (0)