1
0
mirror of synced 2024-11-23 05:26:10 +03:00

Calling select2('open') on multiple select shows 'No Matches Found'.

This commit is contained in:
Igor Vaynberg 2013-03-14 11:31:11 -07:00
parent 911a0bb082
commit b973b56cce

View File

@ -2260,10 +2260,11 @@ the specific language governing permissions and limitations under the Apache Lic
// multi // multi
opening: function () { opening: function () {
this.clearPlaceholder(); // should be done before super so placeholder is not used to search
this.resizeSearch();
this.parent.opening.apply(this, arguments); this.parent.opening.apply(this, arguments);
this.clearPlaceholder();
this.resizeSearch();
this.focusSearch(); this.focusSearch();
this.opts.element.trigger($.Event("open")); this.opts.element.trigger($.Event("open"));