소스 검색

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