Skip to content

Commit

Permalink
Merge pull request #1125 from geovnn/main
Browse files Browse the repository at this point in the history
Prevent clicks outside reaction and zap popups
  • Loading branch information
vitorpamplona authored Oct 7, 2024
2 parents 28c9267 + 54d52e0 commit 5d788ed
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1329,6 +1330,7 @@ fun ReactionChoicePopup(
alignment = Alignment.BottomCenter,
offset = IntOffset(0, iconSizePx),
onDismissRequest = { onDismiss() },
properties = PopupProperties(focusable = true),
) {
ReactionChoicePopupContent(
reactions,
Expand Down Expand Up @@ -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 ->
Expand Down

0 comments on commit 5d788ed

Please sign in to comment.