mercadolibre / chico

A collection of easy-to-use UI components.
http://chico.mercadolibre.com
MIT License
342 stars 91 forks source link

Autocomplete: bad UX when selecting the suggested item #1254

Closed atma closed 8 years ago

atma commented 9 years ago

Current implementation requires one more action from user to submit the form with a keyboard (enter key) since the selection always removes the focus with blur. After the selection the input field should be focused to permit the submission.

hmammana commented 9 years ago

@atma I understand the behavior and the difference between mobile & desktop, but would you like to talk it with someone in the design team and user research? Sol Vazquez(sol.velazquez@) could help you. We can perform some test to stay tunned with the users when they press a enter key.

atma commented 9 years ago

I was thinking that when we doing some action on item select that is changing the URL, e.g. autocomplete.on('select', function(){ location = slugify(query) }), no matter is it focused or not. But when the user want to continue to fill another fields the focused field is more handy, like type ↵ tab to focus the next field → type. At least it should maintain the tabindex. I will prepare the demo for the current version and I'll contact the user research team, thank you.

atma commented 8 years ago

This behaviour depends on implementation and no on the core functionality of autocomplete. Closed as unnecessary.