浏览代码

Also check if search input should be focussed for multiselects

Lee Boynton 11 年之前
父节点
当前提交
2d6b74c2ac
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      select2.js

+ 3 - 1
select2.js

@@ -2827,7 +2827,9 @@ the specific language governing permissions and limitations under the Apache Lic
             }
 
             this.updateResults(true);
-            this.search.focus();
+            if (this.opts.shouldFocusInput(this)) {
+                this.search.focus();
+            }
             this.opts.element.trigger($.Event("select2-open"));
         },