mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复折叠容器触发父折叠容器问题
This commit is contained in:
parent
e53d6d0d0c
commit
87ca8edd1c
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user