Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Open mobile notes at the top

fzaninotto251d3cccf4dc
diff --git a/src/components/atomic-crm/notes/NotesIteratorMobile.tsx b/src/components/atomic-crm/notes/NotesIteratorMobile.tsx
index e787ad4f..6edc16fe 100644
--- a/src/components/atomic-crm/notes/NotesIteratorMobile.tsx
+++ b/src/components/atomic-crm/notes/NotesIteratorMobile.tsx
@@ -121,6 +121,7 @@ export const NoteMobile = ({
return (
<Link
to={`/contacts/${contactId}/notes/${note.id}`}
+ state={{ _scrollToTop: true }}
onClick={() => scrollPositions.set(contactId, window.scrollY)}
className="block active:bg-accent/50 -mx-2 px-2 py-2 rounded-md"
>