|
|
|
@ -220,7 +220,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
path.push(split); |
|
|
|
|
childrenCount.push(expanded.length); |
|
|
|
|
// 如果只有一个值且取消的就是这个值
|
|
|
|
|
if (i === parents.length - 1 && expanded.length === 1 && expanded[0] === notSelectedValue) { |
|
|
|
|
if (i === parents.length - 1 && expanded.length === 1 && expanded[0].value === notSelectedValue) { |
|
|
|
|
for (var j = childrenCount.length - 1; j >= 0; j--) { |
|
|
|
|
if (childrenCount[j] === 1) { |
|
|
|
|
self._deleteNode(selectedValues, path[j]); |
|
|
|
|