Browse Source

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

Igor Vaynberg 12 năm trước cách đây
mục cha
commit
b973b56cce
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      select2.js

+ 3 - 2
select2.js

@@ -2260,10 +2260,11 @@ the specific language governing permissions and limitations under the Apache Lic
 
         // multi
         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.clearPlaceholder();
-			this.resizeSearch();
             this.focusSearch();
 
             this.opts.element.trigger($.Event("open"));