Browse Source

Allow immediate typing when tabbing to multiple select.

Ryan Wallace 10 năm trước cách đây
mục cha
commit
02cca7baa7
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/js/select2/selection/search.js

+ 4 - 0
src/js/select2/selection/search.js

@@ -54,6 +54,10 @@ define([
       self.trigger('focus', evt);
     });
 
+    this.$selection.on('focus', function (evt) {
+      self.$search.trigger('focus');
+    });
+
     this.$selection.on('focusout', '.select2-search--inline', function (evt) {
       self.trigger('blur', evt);
     });