Fix mobile menu in IE11
Remove trailing comma in functions (IE11)
This commit is contained in:
parent
f7d555ae80
commit
593fc3bbfb
2 changed files with 8 additions and 1 deletions
|
@ -27,6 +27,13 @@
|
|||
2,
|
||||
"tab"
|
||||
],
|
||||
"comma-dangle": ["error", {
|
||||
"arrays": "always-multiline",
|
||||
"objects": "always-multiline",
|
||||
"imports": "always-multiline",
|
||||
"exports": "always-multiline",
|
||||
"functions": "ignore"
|
||||
}],
|
||||
"no-tabs": 0
|
||||
}
|
||||
},
|
||||
|
|
|
@ -6,7 +6,7 @@ function toggleMenu() {
|
|||
this.classList.toggle('main-nav__btn--active');
|
||||
this.setAttribute(
|
||||
'aria-expanded',
|
||||
this.getAttribute('aria-expanded') === 'true' ? 'false' : 'true',
|
||||
this.getAttribute('aria-expanded') === 'true' ? 'false' : 'true'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue