fix(input): opt plain inputs out of macOS Writing Tools suggestions (#646)

This commit is contained in:
Gregory Schier authored and GitHub committed 2026-09-13 09:15:15 -07:00
1 parent 522b898620
commit 7d0926c961
2 files changed
+9

No files matched your search

@@ -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"))}
+8
View File
@@ -0,0 +1,8 @@
import "react";
declare module "react" {
interface HTMLAttributes<T> {
// Not in @types/react yet; opts editable elements out of macOS Writing Tools
writingsuggestions?: "true" | "false";
}
}