Skip to content

Commit 0daee34

Browse files
committed
Fixed Select2 jumping around in Chrome
This fixes select2#2769, where Select2 will jump around because of how focus moves to the original element when selections are made. Because absolute positioning pushed the original element out of the viewport, bringing it back into the viewport should be the best fix.
1 parent 0ed9e02 commit 0daee34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
667667
margin: 0 !important;
668668
padding: 0 !important;
669669
overflow: hidden !important;
670-
position: absolute !important;
670+
position: static !important;
671671
outline: 0 !important;
672672
left: 0px !important;
673673
top: 0px !important;

0 commit comments

Comments
 (0)