Skip to content

Conversation

@leeroybrun
Copy link
Collaborator

@leeroybrun leeroybrun commented Jan 11, 2026

On web, when an alert modal is shown while an expo-router modal (like "new session") is open, the alert's OK button was unclickable. This happened because expo-router sets pointer-events: none on body and pointer-events: auto on its own overlay, which intercepted clicks meant for our alert modal.

For example, we could never click "OK" and close that modal:
Screenshot 2026-01-11 at 16 36 27

Fix:

  • Add pointerEvents: 'auto' to modal container to enable interactions
  • Stop event propagation on web to prevent clicks from reaching expo-router's overlay

@leeroybrun leeroybrun force-pushed the slopus/pr/fix-modal-button-click branch 3 times, most recently from 50a5e33 to ef1856c Compare January 11, 2026 21:52
On web, when an alert modal is shown while an expo-router modal (like "new session") is open, the alert's OK button was unclickable. This happened because expo-router sets pointer-events: none on body and pointer-events: auto on its own overlay, which intercepted clicks meant for our alert modal.

Fix:
- Add pointerEvents: 'auto' to modal container to enable interactions
- Stop event propagation on web to prevent clicks from reaching expo-router's overlay
@leeroybrun leeroybrun force-pushed the slopus/pr/fix-modal-button-click branch from ef1856c to 6c428d7 Compare January 11, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant