Focus labels textfield when opening on Android
This commit is contained in:
@ -153,7 +153,7 @@ dependencies {
|
||||
kapt "androidx.room:room-compiler:$room_version"
|
||||
|
||||
implementation 'com.github.jeziellago:compose-markdown:0.3.3'
|
||||
implementation "io.github.dokar3:chiptextfield:0.4.6"
|
||||
implementation "io.github.dokar3:chiptextfield:0.4.7"
|
||||
}
|
||||
|
||||
apollo {
|
||||
|
||||
@ -389,6 +389,6 @@ fun LabelsSelectionSheetContent(
|
||||
}
|
||||
}
|
||||
LaunchedEffect(Unit) {
|
||||
|
||||
state.focusTextField()
|
||||
}
|
||||
}
|
||||
|
||||
@ -183,7 +183,8 @@ fun EditNoteModal(initialValue: String?, onDismiss: (save: Boolean, text: String
|
||||
.fillMaxSize(),
|
||||
value = annotation.value, onValueChange = { annotation.value = it },
|
||||
colors = TextFieldDefaults.textFieldColors(
|
||||
textColor = Color.White
|
||||
focusedTextColor = Color.White,
|
||||
unfocusedTextColor = Color.White,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user