@homebound/beam 2.268.0 → 2.268.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -97,7 +97,7 @@ function TreeSelectFieldBase(props) {
|
|
|
97
97
|
if (isSelected)
|
|
98
98
|
return true;
|
|
99
99
|
// If we do not have children, then return the state of this leaf node.
|
|
100
|
-
if (!maybeParent.children)
|
|
100
|
+
if (!maybeParent.children || maybeParent.children.length === 0)
|
|
101
101
|
return isSelected;
|
|
102
102
|
// If we do have children, then check if all children are selected.
|
|
103
103
|
// if all are selected, then push this parent to the selectedKeys and selectedOptions
|