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

BsModalService's enter key event how to solve multiple problems? #3356

Closed
elpmisu opened this issue Dec 25, 2017 · 2 comments
Closed

BsModalService's enter key event how to solve multiple problems? #3356

elpmisu opened this issue Dec 25, 2017 · 2 comments

Comments

@elpmisu
Copy link

elpmisu commented Dec 25, 2017

When I create a modal with BsModalService, Enter key will create multiple modal

@elpmisu
Copy link
Author

elpmisu commented Dec 25, 2017

How can I solve this problem?

@IlyaSurmay
Copy link
Contributor

That's happening because modal doesn't focus its root element so button remains focused and pressing enter is triggering function that shows modal. This will be fixed in future release, meanwhile, you can manually focus something in modal after it's shown.

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

No branches or pull requests

2 participants