-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
feat(autocomplete): add the ability to highlight the first option on open #9495
feat(autocomplete): add the ability to highlight the first option on open #9495
Conversation
abc0535
to
e2ff050
Compare
src/lib/autocomplete/autocomplete.ts
Outdated
* Can be configured globally through the `MAT_AUTOCOMPLETE_DEFAULT_OPTIONS` token. | ||
*/ | ||
@Input() | ||
get highlightFirstOption(): boolean { return this._highlightFirstOption; } |
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.
Chatted w/ Miles and Joey, we came to autoActiveOption
as the proposal for this. I like using "active" since it aligns with the term we use in list-key-manager and in datepicker. Thoughts?
…open Adds the ability for the consumer opt-in to having the autocomplete highlight the first option when opened. Includes an injection token that allows it to be configured globally. Fixes angular#8423.
e2ff050
to
e758986
Compare
Good to go @jelbourn. |
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.
LGTM
finally this feature can replace select2 search functionality thanks |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adds the ability for the consumer opt-in to having the autocomplete highlight the first option when opened. Includes an injection token that allows it to be configured globally.
Fixes #8423.