From 7173d2c6f5e113b175530ab5113179828086d4e9 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sat, 28 Jun 2025 01:53:33 +0200 Subject: [PATCH] Remove focuser machiner --- src/pages/Index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 9244ed9..a5fc335 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -955,13 +955,6 @@ const Index = () => { }).replace(/(\d+)\/(\d+)\/(\d+),\s(\d+):(\d+):(\d+)/, '$3-$1-$2 $4:$5:$6'); }; - // Auto-focus current note textarea on mount - useEffect(() => { - if (currentNoteRef.current) { - currentNoteRef.current.focus(); - } - }, []); // Empty dependency array means this runs once on mount - // Load font size setting const loadFontSizeSetting = async () => { try { @@ -1102,6 +1095,7 @@ const Index = () => { setCurrentNote(e.target.value); }} onBlur={handleCurrentNoteBlur} + autoFocus className={`h-[calc(100%-2rem)] border-0 resize-none focus:ring-0 text-slate-200 bg-transparent ${getTextClass('2xl')}`} placeholder="Start writing your thoughts..." />