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

Description
Any "focused task" should trap focus inside, and not let it get out.
Right now:
- It does not set a focus on modal content, keeping it on the button one clicked to open a modal
- Does not prevent leaving modal. "tabbing-out" from it.
- Lucky we - it closes modal on any action "outside"
https://github.com/theKashey/react-focus-lock will do the job :)