소스 검색

Fixed allowClear on fixed width

This moves the clear icon to the top of the DOM from the bottom to
ensure that it is always visible on top of the selection.

This closes https://github.com/select2/select2/issues/3089.
Kevin Brown 10 년 전
부모
커밋
e3d7cd2d69
7개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 1
      dist/js/select2.amd.full.js
  2. 1 1
      dist/js/select2.amd.js
  3. 2 2
      dist/js/select2.full.js
  4. 0 0
      dist/js/select2.full.min.js
  5. 2 2
      dist/js/select2.js
  6. 0 0
      dist/js/select2.min.js
  7. 1 1
      src/js/select2/selection/allowClear.js

+ 1 - 1
dist/js/select2.amd.full.js

@@ -1226,7 +1226,7 @@ define('select2/selection/allowClear',[
     );
     $remove.data('data', data);
 
-    this.$selection.find('.select2-selection__rendered').append($remove);
+    this.$selection.find('.select2-selection__rendered').prepend($remove);
   };
 
   return AllowClear;

+ 1 - 1
dist/js/select2.amd.js

@@ -1226,7 +1226,7 @@ define('select2/selection/allowClear',[
     );
     $remove.data('data', data);
 
-    this.$selection.find('.select2-selection__rendered').append($remove);
+    this.$selection.find('.select2-selection__rendered').prepend($remove);
   };
 
   return AllowClear;

+ 2 - 2
dist/js/select2.full.js

@@ -1,5 +1,5 @@
 /*!
- * Select2 4.0.0-rc.1 - Thu, 12 Mar 2015 00:39:48 GMT
+ * Select2 4.0.0-rc.1 - Thu, 12 Mar 2015 01:27:38 GMT
  * https://select2.github.io
  *
  * Released under the MIT license
@@ -1672,7 +1672,7 @@ define('select2/selection/allowClear',[
     );
     $remove.data('data', data);
 
-    this.$selection.find('.select2-selection__rendered').append($remove);
+    this.$selection.find('.select2-selection__rendered').prepend($remove);
   };
 
   return AllowClear;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/js/select2.full.min.js


+ 2 - 2
dist/js/select2.js

@@ -1,5 +1,5 @@
 /*!
- * Select2 4.0.0-rc.1 - Thu, 12 Mar 2015 00:39:48 GMT
+ * Select2 4.0.0-rc.1 - Thu, 12 Mar 2015 01:27:38 GMT
  * https://select2.github.io
  *
  * Released under the MIT license
@@ -1672,7 +1672,7 @@ define('select2/selection/allowClear',[
     );
     $remove.data('data', data);
 
-    this.$selection.find('.select2-selection__rendered').append($remove);
+    this.$selection.find('.select2-selection__rendered').prepend($remove);
   };
 
   return AllowClear;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/js/select2.min.js


+ 1 - 1
src/js/select2/selection/allowClear.js

@@ -64,7 +64,7 @@ define([
     );
     $remove.data('data', data);
 
-    this.$selection.find('.select2-selection__rendered').append($remove);
+    this.$selection.find('.select2-selection__rendered').prepend($remove);
   };
 
   return AllowClear;

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.