浏览代码

Fixed Select2 jumping around in Chrome

This fixes #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.
Kevin Brown 10 年之前
父节点
当前提交
0daee34626
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select2.css

+ 1 - 1
select2.css

@@ -667,7 +667,7 @@ html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
     margin: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
     overflow: hidden !important;
     overflow: hidden !important;
-    position: absolute !important;
+    position: static !important;
     outline: 0 !important;
     outline: 0 !important;
     left: 0px !important;
     left: 0px !important;
     top: 0px !important;
     top: 0px !important;