fix: 修复折叠容器触发父折叠容器问题

This commit is contained in:
zhangtao07 2024-11-01 14:26:11 +08:00
parent e53d6d0d0c
commit 87ca8edd1c

View File

@ -78,7 +78,7 @@ export class CollapseGroupRender extends React.Component<
collapseId: string | number,
collapsed: boolean
) {
const {dispatchEvent, onCollapse} = this.props;
const {dispatchEvent} = this.props;
const renderEvent = await dispatchEvent(
'change',
resolveEventData(this.props, {
@ -90,7 +90,6 @@ export class CollapseGroupRender extends React.Component<
if (renderEvent?.prevented) {
return;
}
onCollapse?.(activeKeys, collapseId, collapsed);
}
render() {