Browse Source

Merge pull request #2364 from joshuajonah/master

Stopped refresh to top when `closeOnSelect: false`
Kevin Brown 10 năm trước cách đây
mục cha
commit
dd323687f3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
             }