Просмотр исходного кода

Merge pull request #1639 from francoispluchino/fix-close-focus

Fix the focus when list is closed on the mouse click event
Igor Vaynberg 11 лет назад
Родитель
Сommit
0d0882942f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      select2.js

+ 1 - 1
select2.js

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