-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/autocomplete
Description
Bug, feature request, or proposal:
Sometimes, when filtering on a match by using a function in the (click) event, while also using a (focusout) event, the [(ngModel)] value is not updated in time, and the filter finds no match. This does not happen with key events or focusout events.
What is the expected behavior?
(click) should behave the same way as (focusout), (keyup.esc), (keyup.enter), etc.
What are the steps to reproduce?
https://plnkr.co/edit/ssnnkT7lwUshuT9qP4y2?p=preview
- Type the letter 't'
- Select any option by CLICKING it (ex: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX")
- The form resets because ngModel is set to "t" and NOT "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", thus finding no match in the array list
This seems to occur with longer strings.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.0.2, Material 2.0.0-beta.5, Typescript 2.2.2, Chrome
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/autocomplete