Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

required validator does not detect empty arrays, but empty File Lists #72

Open
AndyOGo opened this issue Mar 9, 2020 · 0 comments
Open

Comments

@AndyOGo
Copy link

AndyOGo commented Mar 9, 2020

We have a multiple choice select list, which ends up being an array.

If it's value is an empty array [] I expect the !value.length check to match, but it is only applied for File Lists.

typeof value === 'string' ? !value.trim() : isFileList(value) && !isNaN(value.length) ? !value.length : !value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant