mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 18:33:01 +00:00
removed spellcheck from fields that don't need it
This commit is contained in:
@@ -12,6 +12,7 @@ export function Field({
|
||||
placeholder,
|
||||
error,
|
||||
tabIndex,
|
||||
spellcheck,
|
||||
}: {
|
||||
label: string;
|
||||
value?: string;
|
||||
@@ -22,6 +23,7 @@ export function Field({
|
||||
placeholder?: string;
|
||||
error?: string;
|
||||
tabIndex?: number;
|
||||
spellcheck?: boolean;
|
||||
}) {
|
||||
const [internalTouched, setInternalTouched] = useState(false);
|
||||
const isTouched = submitAttempted || internalTouched;
|
||||
@@ -53,6 +55,7 @@ export function Field({
|
||||
aria-invalid={error !== undefined || invalidMessage !== ""}
|
||||
type={hidden ? "password" : "text"}
|
||||
tabIndex={tabIndex}
|
||||
spellCheck={spellcheck}
|
||||
/>
|
||||
<div className="flex items-end justify-end w-full text-xs mb-0 -mt-1">
|
||||
{error || invalidMessage !== "" ? (
|
||||
|
||||
Reference in New Issue
Block a user