multiselect icon indicating copy to clipboard operation
multiselect copied to clipboard

Bug with searchable option when its value is false and using several lists

Open ghusta opened this issue 15 years ago • 1 comments

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();

ghusta avatar Oct 27 '10 12:10 ghusta

Thanks for the fix!

JonDavies avatar Feb 10 '12 09:02 JonDavies