laktek / jQuery-Smart-Auto-Complete

AutoComplete plugin with smart defaults and flexibility to customize
http://laktek.com/2011/03/03/introducing-jquery-smart-autocomplete/
248 stars 34 forks source link

Pressing enter with no selection resets field #19

Open lbriquet opened 12 years ago

lbriquet commented 12 years ago

The jQuery Smart AutoComplete is powerful and very useful!

I was wondering if it is possible to configure the Smart AutoComplete so that if someone presses enter without selecting an item in the suggestion list so that the list remains visible and the field is not emptied? What I would like to do is force the user to choose one of the items in the list of suggestions.

Many people have the habit of typing in the search field and hitting the enter key, instead of pressing a button... and they may be frustrated to see that their search is not performed and the criteria they used has disappeared.

I've tried setting forceSelect option to false, but it had no impact.

Thank you in advance for your help! lbriquet

jknopp commented 10 years ago

Any luck on solving this? Attempting to fix this exact issue with no luck so far..