Explorar o código

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

Fix the focus when list is closed on the mouse click event
Igor Vaynberg %!s(int64=11) %!d(string=hai) anos
pai
achega
0d0882942f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
                     }