sergiodlopes / jquery-flexdatalist

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

Fixed hidden input when removing items when set to multiple #171

Open nhaberl opened 6 years ago

nhaberl commented 6 years ago

When limitOfValues is set to 1 and you have selected 2 items after you remove one the input is set to display:none because the array still has the value. So put the checkLimit to the end of the remove method and it works all fine.