From 7d0926c961f270602ceb956dffa742aca8a1b6ea Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 13 Sep 2026 09:15:15 -0700 Subject: [PATCH] fix(input): opt plain inputs out of macOS Writing Tools suggestions (#646) --- apps/yaak-client/components/core/PlainInput.tsx | 1 + apps/yaak-client/react-augment.d.ts | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 apps/yaak-client/react-augment.d.ts diff --git a/apps/yaak-client/components/core/PlainInput.tsx b/apps/yaak-client/components/core/PlainInput.tsx index a476258f..c38672e8 100644 --- a/apps/yaak-client/components/core/PlainInput.tsx +++ b/apps/yaak-client/components/core/PlainInput.tsx @@ -205,6 +205,7 @@ export const PlainInput = forwardRef<{ focus: () => void }, PlainInputProps>(fun autoComplete="off" autoCapitalize="off" autoCorrect="off" + writingsuggestions="false" inputMode={inputMode} onChange={(e) => handleChange(e.target.value)} onPaste={(e) => onPaste?.(e.clipboardData.getData("Text"))} diff --git a/apps/yaak-client/react-augment.d.ts b/apps/yaak-client/react-augment.d.ts new file mode 100644 index 00000000..4aaa3533 --- /dev/null +++ b/apps/yaak-client/react-augment.d.ts @@ -0,0 +1,8 @@ +import "react"; + +declare module "react" { + interface HTMLAttributes { + // Not in @types/react yet; opts editable elements out of macOS Writing Tools + writingsuggestions?: "true" | "false"; + } +}