Skip to content
Discussion options

You must be logged in to vote

For anybody else who might encounter this...

I found the issue was being caused by a button at the bottom of the modal that was hijacking focus. This prompted the browser to scroll said button into view. Although unknown to me before this, it seems to be a common issue.

This page covers a few ways to prevent/work around the behaviour. Personally, I opted to add a close button to the top of the modal. This gives the browser something to focus on so it stops looking for buttons further down the modal.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sng82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #438 on April 12, 2024 14:13.