-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This changes the API so that by default the FocusTrap doesn't wrap the children and therefore there must only be a single child element under HotKeys. In such a case there is no tabIndex manipulation unless used explicitly. In order to wrap the contents one needs to explicitly define the component property as follows: <HotKeys> <p>This is NOT going to get wrapped with a div</p> </HotKeys> <HotKeys component="div"> <p>This is going to get wrapped around with a div</p> </HotKeys>
- Loading branch information
Showing
3 changed files
with
42 additions
and
10 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
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