Allow to select checkbox entry when children is null (#17783)

This commit is contained in:
José Varela
2023-03-14 12:39:01 +00:00
committed by GitHub
parent e87f93f3b4
commit a29a664ae7

View File

@@ -122,7 +122,7 @@ const treeValue = computed({
const added = difference(newValue, props.modelValue);
const removed = difference(props.modelValue, newValue);
if (props.children.length > 0) {
if (Array.isArray(props.children) && props.children.length > 0) {
switch (props.valueCombining) {
case 'all':
return emitAll(newValue, { added, removed });