ソースを参照

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);
     });