-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of when both onClick and onKeyPress are passed
We would previously call both `onClick` and `onKeyPress` on Space and Enter. This is inconsistent with browsers. Both should run if enter is pressed. If space is pressed and both are provided, only run `onKeyPress`. On enter, `onKeyPress` will run first if both are provided.
- Loading branch information
Showing
2 changed files
with
88 additions
and
47 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