feat(react/collections/board): disable autofill when entering note title

This commit is contained in:
Elian Doran 2025-09-13 09:18:52 +03:00
parent 220858926f
commit 3ce6b43018
No known key found for this signature in database

View File

@ -246,6 +246,7 @@ export function TitleEditor({ currentValue, placeholder, save, dismiss, multilin
inputRef={inputRef} inputRef={inputRef}
currentValue={currentValue ?? ""} currentValue={currentValue ?? ""}
placeholder={placeholder} placeholder={placeholder}
autoComplete="trilium-title-entry" // forces the auto-fill off better than the "off" value.
rows={multiline ? 4 : undefined} rows={multiline ? 4 : undefined}
onKeyDown={(e: JSX.TargetedKeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => { onKeyDown={(e: JSX.TargetedKeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => {
if (e.key === "Enter") { if (e.key === "Enter") {