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): play nicelly with existing formatters
- Loading branch information
1 parent
5ddd01f
commit d2df0b3
Showing
2 changed files
with
55 additions
and
28 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
d2df0b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this commit break the "select as label for value in array" syntax?
http://plnkr.co/edit/jVLnb6IrCoLX9gfldMPQ?p=preview
d2df0b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrisronline sort of... In reality it fixes inconsistency in input text rendering where it is impossible to derive input text (state.title) from the model (state.id). In such a case the input text was rendered correctly upon selection but wan't good upon initial rendering.
But you can still get the proper functionality by using the
typeahead-input-formatter
attribute:http://plnkr.co/edit/jdATVORkKlEf23Ef8Bp2?p=preview
d2df0b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for us! Cheers