xcash / bootstrap-autocomplete

Bootstrap Autocomplete
MIT License
168 stars 71 forks source link

BUG FIX: searchpre + empty string failure #107

Open slumtrimpet opened 3 years ago

slumtrimpet commented 3 years ago

A bug exists currently where users can no longer search for an empty string ('') when searchPre is implemented. Need to explicitly compare the searchPre return to false instead of trusting the ! operator on the string itself as sometimes '' is desired.