فهرست منبع

Update base.js

Pedro Felipe de Azevedo Furtado 6 سال پیش
والد
کامیت
933189b92e
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/js/select2/selection/base.js

+ 3 - 1
src/js/select2/selection/base.js

@@ -81,7 +81,9 @@ define([
       self.$selection.removeAttr('aria-activedescendant');
       self.$selection.removeAttr('aria-owns');
 
-      self.$selection.focus();
+      window.setTimeout(function () {
+        self.$selection.focus();
+      }, 0);
     
       self._detachCloseHandler(container);
     });