This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typeahead): plug in front of existing parsers
Closes #863
- Loading branch information
1 parent
ed5f979
commit 80cef61
Showing
2 changed files
with
16 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -363,6 +363,21 @@ describe('typeahead tests', function () { | |
|
||
expect(inputEl.val()).toEqual('Alaska'); | ||
}); | ||
|
||
it('issue 863 - it should work correctly with input type="email"', function () { | ||
|
||
$scope.emails = ['[email protected]', '[email protected]']; | ||
var element = prepareInputEl("<div><input type='email' ng-model='email' typeahead='email for email in emails | filter:$viewValue'></div>"); | ||
var inputEl = findInput(element); | ||
|
||
changeInputValueTo(element, 'bar'); | ||
expect(element).toBeOpenWithActive(1, 0); | ||
|
||
triggerKeyDown(element, 13); | ||
|
||
expect($scope.email).toEqual('[email protected]'); | ||
expect(inputEl.val()).toEqual('[email protected]'); | ||
}); | ||
}); | ||
|
||
describe('input formatting', function () { | ||
|
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