소스 검색

Fix failing test due to timing issue

JC Brand 5 년 전
부모
커밋
cca5c17ccb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/dropdown.js

+ 2 - 2
src/components/dropdown.js

@@ -20,8 +20,8 @@ export class BaseDropdown extends CustomElement {
 
     hideMenu () {
         u.removeClass('show', this.menu);
-        this.button.setAttribute('aria-expanded', false);
-        this.button.blur();
+        this.button?.setAttribute('aria-expanded', false);
+        this.button?.blur();
     }
 
     showMenu () {