multiselect
multiselect copied to clipboard
Bug with searchable option when its value is false and using several lists
The searchable option affects all the multiselect lists when false. For example, if we try to do : $("#list1").multiselect({sortable: false, searchable: true}); $("#list2").multiselect({sortable: false, searchable: false});
All the widgets now have the search input hidden.
The problem is with this code : // set up livesearch if (this.options.searchable) { this._registerSearchEvents(this.availableContainer.find('input.search')); } else { $('.search').hide(); }
The else block should be replaced by : this.availableContainer.find('input.search').hide();
Thanks for the fix!