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

isEmpty() doesn't support numeric model values #110

Open
avaragado opened this issue Oct 27, 2015 · 1 comment · May be fixed by #129
Open

isEmpty() doesn't support numeric model values #110

avaragado opened this issue Oct 27, 2015 · 1 comment · May be fixed by #129

Comments

@avaragado
Copy link

I have a selectize component with the required attribute set. This means isEmpty is called on validation to check whether the model has a value or not.

If the model value is numeric (eg set programmatically rather than by user selection), the isEmpty test fails as numbers don't have a length property.

@PhiLhoSoft
Copy link
Contributor

Yes, at long least, the lazy !val.length should be val.length === 0...

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

Successfully merging a pull request may close this issue.

2 participants