mercadolibre / chico

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

Prevent onkeyenter input field #1220

Open ibarbieri opened 9 years ago

ibarbieri commented 9 years ago

Bug in autosuggest component

When i'm doing a search i can' t trigger the query on key enter inside the input field.
We fix it commenting //ch.util.prevent(event);

File: https://github.com/mercadolibre/chico/blob/master/src/ui/js/Autocomplete.js#L21

marcoscaceres26 commented 9 years ago

This issue has been temporarily addressed in the autocomplete extension by removing the handler function for the ch.onkeyenter and adding a new one.