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"; + } +}