hy-virtual-tree 1.1.31 → 1.1.32
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.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -917,7 +917,7 @@ function useCheck(props, tree) {
|
|
|
917
917
|
// 多选
|
|
918
918
|
const toggle = (node, checked) => {
|
|
919
919
|
// 对隐藏的节点不做处理
|
|
920
|
-
if (hiddenNodeKeySet.has(node.key) || tree.hiddenNodeKeySet.has(node.key))
|
|
920
|
+
if (hiddenNodeKeySet.has(node.key) || (tree.hiddenNodeKeySet.has(node.key) && nodeClick))
|
|
921
921
|
return;
|
|
922
922
|
checkedKeySet[checked ? 'add' : 'delete'](node.key);
|
|
923
923
|
const children = node.children;
|