forked from mbenford/ngTagsInput
-
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.
feat(autoComplete): down arrow hotkey option to open suggestion box i…
…f not shown Add the down arrow downkey event as a hotkey that opens the suggestion box if the suggestion box is not visible. This feature is important because it gives the user a method for browsing the list of tags without needing to filter. Requires the source function to return a list when input is null. Addresses mbenford#54
- Loading branch information
Showing
2 changed files
with
71 additions
and
11 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
Because of the way jasmine mocks input events
e.currentTarget
does not exist when testingkeydown
.Since I opted to use
e
instead of including another function to pass the input value throughkeydown
I need to check thatcurrentTarget
exists andcurrentTarget.value
has value and has length -- if false passnull