-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix programmatic focus/blur events, typing into currently focused (#2982
) * fix programmatic blur events, allow typing into currently focused, fix getHostContenteditable * intercept .blur * reference issues in tests * make tests account for conditional number of new lines inserted - newer browsers insert a double new line, whereas older browsers dont - write a helper that exposes the multiplier of new lines * cleanup, remove dead code * make tests dynamic when browser is or isn't out of focus * cleanup, remove old notes, add more notes * add failing tests for when native focus / blur are called multiple times - need to handle not firing the events conditionally based on whether or not the element would / should receive them * remove old code for priming focus/blur events when window is out of focus * remove dead code * update focus_blur spec + add chai-subset * decaffeinate: Rename focus_blur_spec.coffee from .coffee to .js * decaffeinate: Convert focus_blur_spec.coffee to JS * decaffeinate: Run post-processing cleanups on focus_blur_spec.coffee * add failing test * fix double blur/focus events * make document.hasFocus always return true, add test * fix focus events when non-focusable element * remove unneeded retrun * fix focusing body/ bluring active element on click * forgot to call .get() with index * fix focus issue with body/window * still allow firefocus on window, skip firing focus if firstfocusable is window during click * left out return in intercept blur/focus * cleanup test code for focus_blur spec * add tests to type_spec, focus_blur_spec 00-00005bfe * update focus logic for click, fix dtslint error 06-00003d9c * add tests for selectionchange event in focus_blur spec 01-00000dae * set dep to exact version 06-00002320 * minor formatting * intercept focus/blur for SVGElement * add comment to type-into-already-focused logic Co-authored-by: Brian Mann <brian.mann86@gmail.com> Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
- Loading branch information
1 parent
6772a02
commit 7efd9d8
Showing
13 changed files
with
921 additions
and
398 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
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
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
Oops, something went wrong.