Skip to content

Commit 49edc53

Browse files
authored
Merge pull request #210 from dokar3/desktop-popup-fix
Desktop popup fix (fix no value updates for text fields in the sheet)
2 parents 2c4ca18 + 0421712 commit 49edc53

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

sample/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ android {
9393

9494
compose.desktop {
9595
application {
96-
mainClass = "com.dokar.sonner.sample.MainKt"
96+
mainClass = "com.dokar.sheets.sample.MainKt"
9797

9898
nativeDistributions {
9999
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
100-
packageName = "com.dokar.sonner.sample"
100+
packageName = "com.dokar.sheets.sample"
101101
packageVersion = "1.0.0"
102102
}
103103
}

sheets-core/src/desktopMain/kotlin/com/dokar/sheets/Platform.desktop.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.dokar.sheets
22

33
import androidx.compose.runtime.Composable
44
import androidx.compose.ui.window.Popup
5+
import androidx.compose.ui.window.PopupProperties
56

67
actual enum class SecureFlagPolicy {
78
Inherit,
@@ -21,7 +22,10 @@ internal actual fun SheetHost(
2122
onDismissRequest: () -> Unit,
2223
content: @Composable () -> Unit,
2324
) {
24-
Popup(onDismissRequest = onDismissRequest) {
25+
Popup(
26+
onDismissRequest = onDismissRequest,
27+
properties = PopupProperties(focusable = true),
28+
) {
2529
content()
2630
}
2731
}

0 commit comments

Comments
 (0)