fix: prevent search input from receiving focus via onMouseDown preventDefault

This commit is contained in:
Hermes
2026-08-01 13:21:14 +00:00
parent dfaf0ff659
commit a673d77d58
+1 -1
View File
@@ -198,7 +198,7 @@ function NotesPage() {
<div className="p-3 border-b">
<div className="relative">
<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" tabIndex={-1} />
<Input placeholder="Search notes..." value={search} onChange={(e) => setSearch(e.target.value)} className="pl-8" tabIndex={-1} onMouseDown={(e) => e.preventDefault()} />
</div>
</div>
<div className="p-2">