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