Prevent clicks outside reaction and zap popups

This commit is contained in:
Giovanni Gatti 2024-10-07 17:38:05 +02:00
parent 28c92675b2
commit 54d52e0b77
No known key found for this signature in database
GPG Key ID: 001A19EE2FEDD8A7

View File

@ -89,6 +89,7 @@ import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.compose.ui.window.Popup
import androidx.compose.ui.window.PopupProperties
import androidx.core.content.ContextCompat
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
@ -1329,6 +1330,7 @@ fun ReactionChoicePopup(
alignment = Alignment.BottomCenter,
offset = IntOffset(0, iconSizePx),
onDismissRequest = { onDismiss() },
properties = PopupProperties(focusable = true),
) {
ReactionChoicePopupContent(
reactions,
@ -1507,6 +1509,7 @@ fun ZapAmountChoicePopup(
alignment = Alignment.BottomCenter,
offset = IntOffset(0, yOffset),
onDismissRequest = { onDismiss() },
properties = PopupProperties(focusable = true),
) {
FlowRow(horizontalArrangement = Arrangement.Center) {
zapAmountChoices.forEach { amountInSats ->