瀏覽代碼

Merge pull request #2364 from joshuajonah/master

Stopped refresh to top when `closeOnSelect: false`
Kevin Brown 10 年之前
父節點
當前提交
dd323687f3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -3155,7 +3155,7 @@ the specific language governing permissions and limitations under the Apache Lic
                 }
             });
 
-            if (this.highlight() == -1 && noHighlightUpdate !== false){
+            if (this.highlight() == -1 && noHighlightUpdate !== false && this.opts.closeOnSelect === true){
                 self.highlight(0);
             }