HTML string attributes set as booleans (#24408)
This commit is contained in:
parent
b80a7b031b
commit
a425915ce7
2 changed files with 4 additions and 4 deletions
|
@ -291,10 +291,10 @@ function main() {
|
|||
|
||||
if (sidebar.classList.contains('visible')) {
|
||||
document.body.style.overflow = null;
|
||||
toggleButton.setAttribute('aria-expanded', false);
|
||||
toggleButton.setAttribute('aria-expanded', 'false');
|
||||
} else {
|
||||
document.body.style.overflow = 'hidden';
|
||||
toggleButton.setAttribute('aria-expanded', true);
|
||||
toggleButton.setAttribute('aria-expanded', 'true');
|
||||
}
|
||||
|
||||
toggleButton.classList.toggle('active');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue