forked from reactstrap/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Modal): Trap focus on opened modal (reactstrap#1941)
* Modal: Trap focus on opened component (FIX reactstrap#1497 and FIX reactstrap#1679) * fix shift+tab focus navigation controls on nested modal * Changes this.modalCount(1-based) -> this.modalIndex(0-based index), to improve readability * Sets tabstop=2 and includes comments for trapFocus function. * add/remove focus listener with correct signatures (using the capture flag) Co-authored-by: Kyle Tsang <6854874+kyletsang@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
169 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters