Skip to content

fix(glightbox.js): remove background focus, fix issue #555 #557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lstpxl
Copy link

@lstpxl lstpxl commented Mar 9, 2025

Fixes issue #555: To fix "Blocked aria-hidden on an element because its descendant retained focus..." error on chrome. The issue is the original thumbnail retaining focus despite being aria-hidden, once modal opens.

Drawback is the original focus position is lost. Therefore there is a better solution to store original focus position and restore it when modal is closing.

Not tested in IE, but sure OK.

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