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
|
<header
|
||||||
x-data={`{
|
x-data={`{
|
||||||
open: window.innerWidth < 640 ? false : true,
|
open: false,
|
||||||
windowWidth: window.innerWidth,
|
windowWidth: window.innerWidth,
|
||||||
init() {
|
init() {
|
||||||
this.$watch('windowWidth', value => {
|
this.$watch('windowWidth', value => {
|
||||||
this.open = value < 640 ? false : true;
|
this.open = false;
|
||||||
});
|
});
|
||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user