From ddf7096219531f49d1311fc5716e7cd7e9d86ed3 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Tue, 11 Apr 2023 08:27:58 +0200 Subject: [PATCH] [BUGFIX] firefox bug aria-pressed --- frontend/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/main.ts b/frontend/main.ts index 1e1d7cb..dcea3f5 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -30,7 +30,7 @@ function initToggle() { sessionStorage.setItem('tripsFilter', JSON.stringify( Array.from(filterMap.entries()))); } resetFilteredElements(); - if(btn.ariaPressed === 'false'){ + if(btn.getAttribute('aria-pressed') === 'false'){ Array.prototype.forEach.call(btns, (b: HTMLButtonElement) => { b.setAttribute('aria-pressed', 'false'); });