[BUGFIX] firefox bug aria-pressed

This commit is contained in:
Marie Birner 2023-04-11 08:27:58 +02:00
parent 5a40f8ebd6
commit ddf7096219

View File

@ -30,7 +30,7 @@ function initToggle() {
sessionStorage.setItem('tripsFilter', JSON.stringify( Array.from(filterMap.entries()))); sessionStorage.setItem('tripsFilter', JSON.stringify( Array.from(filterMap.entries())));
} }
resetFilteredElements(); resetFilteredElements();
if(btn.ariaPressed === 'false'){ if(btn.getAttribute('aria-pressed') === 'false'){
Array.prototype.forEach.call(btns, (b: HTMLButtonElement) => { Array.prototype.forEach.call(btns, (b: HTMLButtonElement) => {
b.setAttribute('aria-pressed', 'false'); b.setAttribute('aria-pressed', 'false');
}); });