Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Focusing the previous element #248

@craftpip

Description

@craftpip

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions