We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Probably should have option to disable auto focus on close button
Right now I'm creating hack to prevent it:
didOpen: () => { if (document.activeElement?.classList.contains("swal2-close")) { document.activeElement.blur(); } },
No response
The text was updated successfully, but these errors were encountered:
Hello @maxkopych and thanks for the nice request 🙌
Blurring the focused element isn't quite accessible, I wouldn't recommend that.
Instead of that, I added the support for elements with autofocus attribute: #2736
autofocus
Also, the example from your screenshot is updated now to reflect the changes: https://sweetalert2.github.io/#custom-html
Hopefully, that would also work for you.
Sorry, something went wrong.
No branches or pull requests
New feature motivation
Probably should have option to disable auto focus on close button

Right now I'm creating hack to prevent it:
New feature description
No response
New feature implementation
No response
The text was updated successfully, but these errors were encountered: