|
|
@ -220,7 +220,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { |
|
|
|
path.push(split); |
|
|
|
path.push(split); |
|
|
|
childrenCount.push(expanded.length); |
|
|
|
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--) { |
|
|
|
for (var j = childrenCount.length - 1; j >= 0; j--) { |
|
|
|
if (childrenCount[j] === 1) { |
|
|
|
if (childrenCount[j] === 1) { |
|
|
|
self._deleteNode(selectedValues, path[j]); |
|
|
|
self._deleteNode(selectedValues, path[j]); |
|
|
|