Fix failing test due to timing issue

This commit is contained in:
JC Brand 2020-07-10 12:38:46 +02:00
parent d9fcb2b408
commit cca5c17ccb

View File

@ -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 () {