sergiodlopes / jquery-flexdatalist

Flexible input autocomplete/datalist plugin for jQuery
http://projects.sergiodinislopes.pt/flexdatalist/
MIT License
365 stars 84 forks source link

Hitting enter submits form #212

Closed akamadr closed 3 years ago

akamadr commented 5 years ago

Pressing enter while remote data is still loading, causes form submission, because default event isn't prevented. Calling keypressValue on keydown, instead of keyup, fixes that.