Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Modals should "manage" focus #26

@theKashey

Description

@theKashey

Any "focused task" should trap focus inside, and not let it get out.

Right now:

  1. It does not set a focus on modal content, keeping it on the button one clicked to open a modal
  2. Does not prevent leaving modal. "tabbing-out" from it.
  3. Lucky we - it closes modal on any action "outside"

https://github.com/theKashey/react-focus-lock will do the job :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions