mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-09-15 22:32:04 +02:00
fix(input): opt plain inputs out of macOS Writing Tools suggestions (#646)
This commit is contained in:
@@ -205,6 +205,7 @@ export const PlainInput = forwardRef<{ focus: () => void }, PlainInputProps>(fun
|
|||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
autoCapitalize="off"
|
autoCapitalize="off"
|
||||||
autoCorrect="off"
|
autoCorrect="off"
|
||||||
|
writingsuggestions="false"
|
||||||
inputMode={inputMode}
|
inputMode={inputMode}
|
||||||
onChange={(e) => handleChange(e.target.value)}
|
onChange={(e) => handleChange(e.target.value)}
|
||||||
onPaste={(e) => onPaste?.(e.clipboardData.getData("Text"))}
|
onPaste={(e) => onPaste?.(e.clipboardData.getData("Text"))}
|
||||||
|
|||||||
Vendored
+8
@@ -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";
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user