mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
8ecd19701f
commit
d29ec648bd
1 file changed
+2
@@ -191,6 +191,8 @@ export class Input extends React.Component<InputProps, State> {
|
||||
return this.getValidatorError(value, validator) || (error instanceof Error ? error.message : String(error));
|
||||
}
|
||||
})());
|
||||
} else if (!validator.validate(value, this.props)) {
|
||||
errors.push(this.getValidatorError(value, validator));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user