From 29129008d5cde8fc47e216d11dd2be35765dcf33 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Wed, 12 Jun 2013 17:49:32 -0700 Subject: [PATCH] when opened scroll to selected item. fixes #1408. closes #1411 --- select2.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/select2.js b/select2.js index fda4a75d..cc528175 100644 --- a/select2.js +++ b/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(); }