소스 검색

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

Igor Vaynberg 12 년 전
부모
커밋
b973b56cce
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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"));