mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 18:49:00 +01:00
feat(react/collections/board): disable autofill when entering note title
This commit is contained in:
parent
220858926f
commit
3ce6b43018
@ -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") {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user