-
-
Notifications
You must be signed in to change notification settings - Fork 902
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
[bug] Combining ngOptionHighlight with Typeahead #591
Comments
Hi @guillaumegarcia13, thanks for reporting. it looks like https://github.com/ng-select/ng-select/blob/master/src/ng-select/ng-option-highlight.directive.ts#L30 is causing this issue since ngOnChanges may not be trigger on typeahead items change. |
Hi - I am using version 1.5.2 (w/angular 4) - I read somewhere that changes/fixes would be back compatible but it does not seem the case for this issue, is my only option to upgrade to angular 5 or I may be missing something. Thanks! |
... I meant I have angular 5 (do I need to migrate to 6?) |
I might be mistaken but the commit 08f91ae is only present in 2.3.2 onwards. |
Thanks @guillaumegarcia13, the reason of my question is that, after they released v2.0.0 they been maintaining v1.x, currently on 1.5.2. But you may be right, fix for this issue may have not been put (may won't be) on version 1.x. |
Expected behaviour
Search terms should he highlighted
Actual behaviour
ngOptionHighlight works for a split second
but new items replace previous (highlighted) ones and so highlight is no longer displayed.
See this stackblitz: https://stackblitz.com/edit/ng-select-highlight
More Info
ng-select version: 2.0
browser: Chrome 66
reproducible in demo page: NO (haven't seen this combination of options?)
The text was updated successfully, but these errors were encountered: