mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
Revert changes to isValid
This commit is contained in:
@@ -8,7 +8,7 @@ import PasswordInput from './PasswordInput';
|
|||||||
function PasswordField(props) {
|
function PasswordField(props) {
|
||||||
const { id, name, label, validate, isRequired, helperText } = props;
|
const { id, name, label, validate, isRequired, helperText } = props;
|
||||||
const [, meta] = useField({ name, validate });
|
const [, meta] = useField({ name, validate });
|
||||||
const isValid = !meta.touched || (meta.value && meta.value !== '');
|
const isValid = !(meta.touched && meta.error);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FormGroup
|
<FormGroup
|
||||||
|
|||||||
Reference in New Issue
Block a user