You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
It can happen if you open a modal by clicking on the "Open me" button and then press enter. What is going on here is that the "Open me" button stays focused so pressing Enter invokes the same action once again. I'm not sure there is a way of preventing this, other than blurring an element in the click handler: http://plnkr.co/edit/R49nrFNpNdQDcgVtV8yQ?p=preview
Not sure I can think of anything else as an work-around. I need to investigate if there is a way of preventing default behavior on all the events that are not targeting elements within the top-most modal window.
Instead of doing that, a more generic way would be to call focus into the window only if the focus (activeElement) isn't already on the window nor is it on any child elements of the window. However, I'm not sure if this is worthwhile for the added complexity.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Pressing the enter key when a modal is open seems to open additional modal instances. I'm guessing this is a bug. If not, how do you disable?
The text was updated successfully, but these errors were encountered: