truckingsim / Ajax-Bootstrap-Select

This uses the bootstrap-select plugin and extends it so that you can use a remote source to search.
MIT License
280 stars 97 forks source link

Trigger refresh when there aren't any results #191

Closed engin-can closed 1 year ago

engin-can commented 4 years ago

Implementation for statusNoResults scenario was not following same behavior as when results are found. jQuery/bootstrap change event didn't get triggered when no results were found, while it did get triggered when results were found, which is inconsistent. (see point 3)

This change solves the following:

  1. User searches for something and results were found and returned
  2. User selects an option and change event is triggered
  3. User searches for something new and no results were found. All selected options get reset, but change event is NOT triggered.