fix(header): remove logic to open menu automatically on wider screens
This commit is contained in:
parent
2e81e9582a
commit
7d7ee869ae
@ -51,11 +51,11 @@ const navLinks = [
|
||||
|
||||
<header
|
||||
x-data={`{
|
||||
open: window.innerWidth < 640 ? false : true,
|
||||
open: false,
|
||||
windowWidth: window.innerWidth,
|
||||
init() {
|
||||
this.$watch('windowWidth', value => {
|
||||
this.open = value < 640 ? false : true;
|
||||
this.open = false;
|
||||
});
|
||||
window.addEventListener('resize', () => {
|
||||
this.$nextTick(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user