Ajax-Bootstrap-Select
Ajax-Bootstrap-Select copied to clipboard
Trigger refresh when there aren't any results
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:
- User searches for something and results were found and returned
- User selects an option and
change
event is triggered - User searches for something new and no results were found. All selected options get reset, but
change
event is NOT triggered.