forked from reactjs/react-modal
-
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.
[fixed] shouldFocusAfterRender and shouldReturnFocusAfterClose flags.
Both options should work independent. If shouldFocusAfterRender and shouldReturnFocusAfterClose are true, the default behavior, it should focus the modal when open and return the focus to the previous element when close. If shouldFocusAfterRender is false and shouldReturnFocusAfterClose is true should be the same as both option true - noop. If shouldFocusAfterRender is true and shouldReturnFocusAfterClose is false, then we focus the modal when open and on close we just pop the previous active element from the focus manager.
- Loading branch information
Showing
2 changed files
with
12 additions
and
16 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