The following code will cause the app to freeze in place:
val state = rememberDialogState(initiallyVisible = true)
Dialog(state = state) {
DialogPanel {
}
}
the is because internally the window of the dialog is not dismissed, when the user taps away or presses escape, to dismiss the dialog.
As a workaround for now, use a Scrim() with full transparency:
val state = rememberDialogState(initiallyVisible = true)
Dialog(state = state) {
Scrim(scrimColor = Color.Transparent)
DialogPanel {
}
}
I doubt anyone will ever face this issue, but it's worth raising in case anyone bumps into it.
The following code will cause the app to freeze in place:
the is because internally the window of the dialog is not dismissed, when the user taps away or presses escape, to dismiss the dialog.
As a workaround for now, use a
Scrim()with full transparency:I doubt anyone will ever face this issue, but it's worth raising in case anyone bumps into it.