-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-autocomplete compels you to click on dropdown item even typing the full word #3324
Comments
Have you tried the |
No I didn't, but it solves partially. It just focus the first selection but it dont apply it on blur. There should be an option to select the first item on blur. |
http://codepen.io/anon/pen/rVJyRO It's working by selecting the first attribute when I hit enter, but it would be bad UX to do so on blur. |
Its hard to say. Is a bad UX if you write just some characters, but if you On Wed, Jul 1, 2015 at 5:47 PM Alex Zielenski notifications@github.com
|
@ivanhtp I believe this is how it originally functioned, but was changed based on user feedback. I'm going to add a way to opt in/out for this behavior. |
Good to know @robertmesserle, thanks for your feedback! |
When enabled, an exact match in the `searchText` will automatically select a matching item if (a) there is exactly one match found and (b) the `searchText` matches the display value exactly Closes #3324
When enabled, an exact match in the `searchText` will automatically select a matching item if (a) there is exactly one match found and (b) the `searchText` matches the display value exactly Closes #3324
When enabled, an exact match in the `searchText` will automatically select a matching item if (a) there is exactly one match found and (b) the `searchText` matches the display value exactly Closes #3324
When enabled, an exact match in the `searchText` will automatically select a matching item if (a) there is exactly one match found and (b) the `searchText` matches the display value exactly Closes #3324
When enabled, an exact match in the `searchText` will automatically select a matching item if (a) there is exactly one match found and (b) the `searchText` matches the display value exactly Closes #3324
When typing on autocomplete, lets say "Alabama", the dropdown shows "Alabama", but if you don't click the dropdown item and just leave the focus, no object is selected.
I think if if you fully write an item, the directive should match with the object without require you to click it.
It could be bypassed in many ways, for example, when you blur the field, it automatically selects the first object of the list. Or if you type "Alaba.." and hit Enter, also selects the first item.
I tested this behavior with 11 people and 9 of them typed the full word without selecting the dropdown item. =/
The text was updated successfully, but these errors were encountered: