Browse Source

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

Igor Vaynberg 12 years ago
parent
commit
b973b56cce
1 changed files with 3 additions and 2 deletions
  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"));