[Vuejs]-Array single value validation

0👍

The custom validation is wrong, it needs to validate if some element in array is true:

let check = this.selectedDays.some(function(element) {
if (element === true) {
    return true;
} else {
    return false;
}});

or:

let check = this.selectedDays.some(e => e === true);

Leave a comment