Selaa lähdekoodia

when opened scroll to selected item. fixes #1408. closes #1411

Igor Vaynberg 12 vuotta sitten
vanhempi
commit
29129008d5
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 2
      select2.js

+ 0 - 2
select2.js

@@ -1290,7 +1290,6 @@ the specific language governing permissions and limitations under the Apache Lic
             this.positionDropdown();
 
             this.dropdown.addClass("select2-drop-active");
-            this.ensureHighlightVisible();
 
             // attach listeners to events that can change the position of the container and thus require
             // the position of the dropdown to be updated as well so it does not come unglued from the container
@@ -1542,7 +1541,6 @@ the specific language governing permissions and limitations under the Apache Lic
             }
 
             function postRender() {
-                results.scrollTop(0);
                 search.removeClass("select2-active");
                 self.positionDropdown();
             }