From aab02f23c02a0d4de7641162afaa770b0309e80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Thu, 19 Feb 2026 20:19:47 +0100 Subject: [PATCH] fix(mobile-menu): add screen width guard to openMenu to prevent accidental triggers --- default.hbs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/default.hbs b/default.hbs index cdc26ea..3450d7c 100644 --- a/default.hbs +++ b/default.hbs @@ -29,8 +29,15 @@ document.addEventListener('alpine:init', () => { Alpine.store('mobileMenu', { open: false, - close() { this.open = false; }, - openMenu() { this.open = true; } + close() { + this.open = false; + }, + openMenu() { + // Only open if we are on a mobile screen to prevent unexpected triggers + if (window.innerWidth < 768) { + this.open = true; + } + } }); });