fix: clear email selection when returning to list on mobile
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
idevakk
2026-03-05 00:56:45 +05:30
parent 22e2b2457a
commit e7895cb70c

View File

@@ -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"> @resize.window="if (window.innerWidth >= 1280) sidebarOpen = true">
<!-- Global Confirmation Modal --> <!-- Global Confirmation Modal -->