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

button is focusing on modal hide #6723

Open
qayyumgb opened this issue Jan 3, 2025 · 1 comment
Open

button is focusing on modal hide #6723

qayyumgb opened this issue Jan 3, 2025 · 1 comment

Comments

@qayyumgb
Copy link

qayyumgb commented Jan 3, 2025

Button from where modal is opened , is focusing on modal close.
Is there any way to avoid button focus on modal hide ?

@lexasq
Copy link
Contributor

lexasq commented Jan 6, 2025

Modal as component uses our focus-trap directive for this exact purpose, but you can trick it by reassigning documents active element if you like.

But we have alternative way to use modal as directive, which doesn't use focustrap so you won't have this issue.

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

2 participants