Skip to content

Commit f452a36

Browse files
committed
don't show single error if hideError is false
1 parent d78e8d5 commit f452a36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ function InputInner ({
574574
onKeyDown={onKeyDownInner}
575575
onChange={onChangeInner}
576576
onBlur={onBlurInner}
577-
isInvalid={!hideError && invalid}
577+
isInvalid={!hideError && invalid} // handle error showing separately
578578
isValid={showValid && meta.initialValue !== meta.value && meta.touched && !meta.error}
579579
/>
580580
{(isClient && clear && field.value && !props.readOnly) &&
@@ -1243,7 +1243,7 @@ export function PasswordInput ({ newPass, qr, copy, readOnly, append, value: ini
12431243

12441244
export function MultiInput ({
12451245
name, label, groupClassName, length = 4, charLength = 1, upperCase, showSequence,
1246-
onChange, autoFocus, inputType = 'text',
1246+
onChange, autoFocus, hideError, inputType = 'text',
12471247
...props
12481248
}) {
12491249
const [inputs, setInputs] = useState(new Array(length).fill(''))

0 commit comments

Comments
 (0)