-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(aria/combobox): fix autocomplete examples and add comments explaining combobox selection behavior #32714
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
Conversation
|
Deployed dev-app for a8d39f8 to: https://ng-dev-previews-comp--pr-angular-components-32714-dev-3240cirt.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
tjshiu
left a comment
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 about it - might need some more investigation time. Seems to work inconsistently.
103fe8e to
2db54b8
Compare
…ning combobox selection behavior
e9d01d1 to
a8d39f8
Compare
tjshiu
left a comment
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.
Nice!
Autocomplete examples were actually incorrectly using ngModel to populate the input value, which was colliding with the ngComboboxInput usage of [value} so clearing the query did not work properly.
Updated all the examples to check and clear the value on the ComboboxInput instead.
Also added clarifying comments in the Combox behavior logic which checks for an active item, then drops it, but then checks again when selecting.