fix: add tabIndex=-1 to search input to prevent auto-focus stealing from title input

This commit is contained in:
Hermes
2026-08-01 13:07:45 +00:00
parent d0d6002126
commit 82db10a10d
+1 -1
View File
@@ -136,7 +136,7 @@ function NotesPage() {
<div className="p-3 border-b"> <div className="p-3 border-b">
<div className="relative"> <div className="relative">
<Search className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" /> <Search className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
<Input placeholder="Search notes..." value={search} onChange={(e) => setSearch(e.target.value)} className="pl-8" /> <Input placeholder="Search notes..." value={search} onChange={(e) => setSearch(e.target.value)} className="pl-8" tabIndex={-1} />
</div> </div>
</div> </div>
<div className="p-2"> <div className="p-2">