From cca5c17ccb024c605b5bb397cf6c7423fce08de3 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 10 Jul 2020 12:38:46 +0200 Subject: [PATCH] Fix failing test due to timing issue --- src/components/dropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/dropdown.js b/src/components/dropdown.js index ba125c98c..af2a7841a 100644 --- a/src/components/dropdown.js +++ b/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 () {