Skip to content

Conversation

@wescopeland
Copy link
Member

This PR fixes a bug that only happens on iOS Safari.

When tapping a BaseDialog close button, Safari burrows the click through the button into whatever is behind it, which can trigger elements inadvertently. This is most especially prominent with global search and the user avatar dropdown menu.

Unfortunately, this only reproduces on iOS Safari. I had to debug using the simulator on macOS. To smoke test, you shouldn't notice any regressions when using the close button in a React dialog.

The issue is fixed by temporarily placing a "shield" div between the dialog close button and whatever is underneath it. This stops the click event from burrowing through.

Before

Before.mp4

After

After.mp4

@wescopeland wescopeland requested a review from a team November 29, 2025 22:59
Copy link
Member

@Jamiras Jamiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Videos suggest problem has been fixed. Doesn't seem to break in my simulator.

@wescopeland wescopeland enabled auto-merge (squash) December 1, 2025 14:20
@wescopeland wescopeland merged commit 2b249e9 into RetroAchievements:master Dec 1, 2025
13 checks passed
@wescopeland wescopeland deleted the safari-close-dropdown-fix branch December 1, 2025 14:23
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.

2 participants