Fixed crash when opening quick actions dialog
This commit is contained in:
parent
f017409db8
commit
1a523d04ef
1 changed files with 4 additions and 4 deletions
|
@ -50,10 +50,6 @@ fun QuickActionsDialog(
|
|||
mutableStateOf(0)
|
||||
}
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
textFieldFocusRequester.requestFocus()
|
||||
}
|
||||
|
||||
MaterialDialog(
|
||||
onCloseRequested = onClose,
|
||||
background = MaterialTheme.colors.surface,
|
||||
|
@ -118,6 +114,10 @@ fun QuickActionsDialog(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
textFieldFocusRequester.requestFocus()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue