瀏覽代碼

Fix the focus when list is closed on the mouse click event

François Pluchino 11 年之前
父節點
當前提交
9bc68f089e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1267,7 +1267,7 @@ the specific language governing permissions and limitations under the Apache Lic
                         if (self.opts.selectOnBlur) {
                         if (self.opts.selectOnBlur) {
                             self.selectHighlighted({noFocus: true});
                             self.selectHighlighted({noFocus: true});
                         }
                         }
-                        self.close({focus:false});
+                        self.close({focus:true});
                         e.preventDefault();
                         e.preventDefault();
                         e.stopPropagation();
                         e.stopPropagation();
                     }
                     }