When a select or a checklist is required and if nothing is checked / selected, the @validated isValid value is true and no error message is displayed.
The isValid should be setted to false and error should contain the errors, and some error message should appear bellow saying that it's required.
I found a work arround but i don't understand why it wasn't made to work like the other fields.
So to have the required state checked :
javascript
min: 1,
validator: VueFormGenerator.validators.array,
javascript
min: 1,
validator: VueFormGenerator.validators.string,
The problem is that the required validator is a bit "simple", in that it only checks if the value being passed in isNil (null || undefined) or is an empty string. An empty array is neither of these, and so passes the required validation.
We can probably make the required validator a bit more intelligent... where it can check to see if the value being passed in is an array, and if so, test it's length.
pls.. fixed the bug.
I so sorry.
I solved problem.
I model set selectedId:0. changed model set selectedId:''.
I have to take a break. 馃槴
Thanks for your help. 馃憤
Thanks for your library. 馃憤