소스 검색

Focus the search upon opening

Kevin Brown 10 년 전
부모
커밋
5535f072e1
7개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      dist/js/select2.amd.full.js
  2. 2 0
      dist/js/select2.amd.js
  3. 2 0
      dist/js/select2.full.js
  4. 0 0
      dist/js/select2.full.min.js
  5. 2 0
      dist/js/select2.js
  6. 0 0
      dist/js/select2.min.js
  7. 2 0
      src/js/select2/dropdown/search.js

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

@@ -1510,6 +1510,8 @@ define('select2/dropdown/search',[
 
     container.on('open', function () {
       self.$search.attr('tabindex', 0);
+
+      self.$search.focus();
     });
 
     container.on('close', function () {

+ 2 - 0
dist/js/select2.amd.js

@@ -1510,6 +1510,8 @@ define('select2/dropdown/search',[
 
     container.on('open', function () {
       self.$search.attr('tabindex', 0);
+
+      self.$search.focus();
     });
 
     container.on('close', function () {

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

@@ -11045,6 +11045,8 @@ define('select2/dropdown/search',[
 
     container.on('open', function () {
       self.$search.attr('tabindex', 0);
+
+      self.$search.focus();
     });
 
     container.on('close', function () {

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


+ 2 - 0
dist/js/select2.js

@@ -1938,6 +1938,8 @@ define('select2/dropdown/search',[
 
     container.on('open', function () {
       self.$search.attr('tabindex', 0);
+
+      self.$search.focus();
     });
 
     container.on('close', function () {

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


+ 2 - 0
src/js/select2/dropdown/search.js

@@ -37,6 +37,8 @@ define([
 
     container.on('open', function () {
       self.$search.attr('tabindex', 0);
+
+      self.$search.focus();
     });
 
     container.on('close', function () {

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