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

Esc and focus trap does not work if iframe is inside the modal #504

Open
jacktan165 opened this issue Nov 2, 2022 · 4 comments
Open

Esc and focus trap does not work if iframe is inside the modal #504

jacktan165 opened this issue Nov 2, 2022 · 4 comments

Comments

@jacktan165
Copy link

No description provided.

@arek-kilimar-allhuman
Copy link

Is there any update on this. The problem still exists.

@kartmax
Copy link

kartmax commented Mar 28, 2024

I encountered the same problem - the modal window does not close by pressing the Esc button if there is an iframe inside it

@kartmax
Copy link

kartmax commented Mar 28, 2024

I encountered the same problem - the modal window does not close by pressing the Esc button if there is an iframe inside it

I figured it out - you need to include this setting in the object when initializing the modal window - disableFocus : true,
After that, the Esc button worked

@rtkirill
Copy link

rtkirill commented Sep 1, 2024

Same issue for me, when including iframe. Changing disableFocus didn't help.

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

No branches or pull requests

4 participants