Explorar o código

Merge pull request #2364 from joshuajonah/master

Stopped refresh to top when `closeOnSelect: false`
Kevin Brown %!s(int64=10) %!d(string=hai) anos
pai
achega
dd323687f3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
             }