Commit 030f2599 authored by 武广's avatar 武广

fix: 修改关闭弹窗报错问题

parent d77abc8c
......@@ -272,7 +272,10 @@ const CustomTree = forwardRef(props => {
// 隐藏所有子树
const handleMouseUp = e => {
const isCur = e.path.some(
item => item.className && item.className.indexOf('CustomCTreeWrapper') > -1,
item =>
item.className &&
typeof item.className === 'string' &&
item.className.indexOf('CustomCTreeWrapper') > -1,
);
if (!isCur) {
onVisibleChildren('', false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment