fix(header): remove logic to open menu automatically on wider screens

This commit is contained in:
Jewgeni Lewash 2024-04-06 07:58:13 +02:00
parent 2e81e9582a
commit 7d7ee869ae

View File

@ -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(() => {