Skip to content
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

Trap/disable focus #132

Open
ijkml opened this issue May 5, 2023 · 2 comments
Open

Trap/disable focus #132

ijkml opened this issue May 5, 2023 · 2 comments
Labels
feature request feature request

Comments

@ijkml
Copy link

ijkml commented May 5, 2023

Hi 👋
Is there currently a way to disable/trap focus within the lightbox? Tabbing when the lightbox is open (even with scroll disabled) continues to focus on elements on the page.

@XiongAmao XiongAmao added the feature request feature request label May 6, 2023
@XiongAmao
Copy link
Owner

Hi,
When I first implemented <vue-easy-lightbox />, I used <div> as button, so ... it couldn't be focused when tabbing.
I will implement this feature later.

@ijkml
Copy link
Author

ijkml commented May 6, 2023

Thank you.

Even if you use divs, you could tab to other focusable elements on the page.

My current workaround is adding a keystroke event listener for "Tab" and event.preventDefault when visible === true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request
Projects
None yet
Development

No branches or pull requests

2 participants