Skip to content

Commit 2912900

Browse files
committed
when opened scroll to selected item. fixes select2#1408. closes select2#1411
1 parent b1867b5 commit 2912900

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

select2.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,6 @@ the specific language governing permissions and limitations under the Apache Lic
12901290
this.positionDropdown();
12911291

12921292
this.dropdown.addClass("select2-drop-active");
1293-
this.ensureHighlightVisible();
12941293

12951294
// attach listeners to events that can change the position of the container and thus require
12961295
// 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
15421541
}
15431542

15441543
function postRender() {
1545-
results.scrollTop(0);
15461544
search.removeClass("select2-active");
15471545
self.positionDropdown();
15481546
}

0 commit comments

Comments
 (0)