List parameter validation doesn't block user configuration creation (anymore?)
There's something in this watcher
watch: {
cleanList: {
handler (newValue, oldValue) {
if (newValue === oldValue) return
/*
* If there are errors on some of the list items, emit a list containing an error which gets
* checked by the validation function so that the parent component blocks configuration creation.
*/
if (!Object.values(this.itemError).every(value => value === null)) this.$emit('update:modelValue', [Error('Errors on one or more list item(s).')])
else if (oldValue !== undefined || newValue.length) this.$emit('update:modelValue', newValue)
},
immediate: true
}
}
that doesn't work anymore or maybe it never worked... This is probably because when there is an error in one of the list items, the value cleanList
is computed from doesn't change.
Edited by ml bonhomme