From e7895cb70c8047fc8a7a3175af99699d4510794c Mon Sep 17 00:00:00 2001 From: idevakk <219866223+idevakk@users.noreply.github.com> Date: Thu, 5 Mar 2026 00:56:45 +0530 Subject: [PATCH] fix: clear email selection when returning to list on mobile --- resources/views/livewire/mailbox.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/livewire/mailbox.blade.php b/resources/views/livewire/mailbox.blade.php index 4af1009..f5bb069 100644 --- a/resources/views/livewire/mailbox.blade.php +++ b/resources/views/livewire/mailbox.blade.php @@ -20,7 +20,7 @@ }); } }" - x-init="$watch('selectedId', value => { if(value && window.innerWidth < 1024) mobileView = 'detail' })" + x-init="$watch('selectedId', value => { if(value && window.innerWidth < 1024) mobileView = 'detail' }); $watch('mobileView', value => { if(value === 'list' && window.innerWidth < 1024) selectedId = null })" @resize.window="if (window.innerWidth >= 1280) sidebarOpen = true">