-
-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add keepFocus prop, when true focusing the overlay will focus the
input, when false focusing the overlay will let the event through Add onBlur on overlay that hides the overlay when clicked outside overlay ant not on input. Add tests for keepFocus and overlayblur, these are hard because enzyme focus and blur don't work like in a real browser: focusing the overlay will not let actually focus it, body will still be focused, so we check that the input is not focused when keepFocus is false.
- Loading branch information
Bart Peeters
committed
Jan 20, 2018
1 parent
73066ab
commit abd1e78
Showing
2 changed files
with
41 additions
and
19 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