implements LeaveWithoutSaving

This commit is contained in:
James
2020-06-05 16:28:50 -04:00
parent 1eeee11d51
commit 39359b405f
10 changed files with 116 additions and 31 deletions

View File

@@ -107,7 +107,7 @@ const optionsToValidatorMap = {
return `This field requires at least ${options.minRows} row(s).`;
}
if (options.maxRows && value.length < options.maxRows) {
if (options.maxRows && value.length > options.maxRows) {
return `This field requires no more than ${options.maxRows} row(s).`;
}