mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-13 00:02:58 +02:00
Disable autocomplete/correct/etc in plain input
This commit is contained in:
@@ -128,6 +128,9 @@ export const PlainInput = forwardRef<HTMLInputElement, PlainInputProps>(function
|
|||||||
type={type === 'password' && !obscured ? 'text' : type}
|
type={type === 'password' && !obscured ? 'text' : type}
|
||||||
defaultValue={defaultValue}
|
defaultValue={defaultValue}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
|
autoComplete="off"
|
||||||
|
autoCapitalize="off"
|
||||||
|
autoCorrect="off"
|
||||||
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'))}
|
||||||
className={inputClassName}
|
className={inputClassName}
|
||||||
|
|||||||
Reference in New Issue
Block a user