-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typeahead onSelect callback #606
Comments
Sure, this would be trivial to implement (wouldn't expect it to be more than 5 LOC). But I thought that it is not needed since we can use the ngModelChange event to know where the model gets changed. @AlexKhymenko as stated above this would be very easy to do but I don't want to duplicate the existing functionality. So could you tell us more about your use case and evaluate if |
The problem comes ngModelChange fires on every user input. So when user pust 'al' it fill fire ngModelChange on every letter 'a' then 'l' before I even select Alabama. |
Oh right! I was kind of assuming "no edit" mode, sorry for the noise. We should add this for the next alpha. |
Thank YOU! Very much! |
I'm not sure that its a good idea to name it ('select'), cause input has its own select event(but it does different thing) and it could lead to unforeseen consequences . |
Grr, you are right @AlexKhymenko ! How about |
selectItem is the best choice(to my mind). Another one is typeaheadOnSelect(but this one is not good with naming style you use across the whole app). |
@AlexKhymenko thnx. Here is the PR: #612 |
@pkozlowski-opensource Thank You!! |
Is it possible to add typeaheadOnselect callback?
The text was updated successfully, but these errors were encountered: