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

Focusing the previous element #248

Closed
craftpip opened this issue Mar 29, 2017 · 0 comments
Closed

Focusing the previous element #248

craftpip opened this issue Mar 29, 2017 · 0 comments
Labels

Comments

@craftpip
Copy link
Owner

Focusing the previous element should be done when all the modals close.

  1. button A is clicked, that opens modal B
  2. button in modal B is clicked, that opens modal C.
  3. modal B returns the focus to button A
  4. modal C is open at this point.
    if you press enter, which will press button A. modal B will open on top of modal C.

Solution;
Common lastFocusedElement for all the modal open at one point.
after the last modal closes, focus the last focused element.

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

No branches or pull requests

1 participant