mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
Merge pull request #10966 from jinmingpang/fix-issue-10939
fix: #10939 修复 broadcast 事件无效
This commit is contained in:
commit
fabab5a2c7
@ -238,7 +238,8 @@ export class SchemaRenderer extends React.Component<SchemaRendererProps, any> {
|
||||
|
||||
if (ref) {
|
||||
// 这里无法区分监听的是不是广播,所以又bind一下,主要是为了绑广播
|
||||
this.unbindEvent = bindEvent(this.ref);
|
||||
this.unbindEvent?.();
|
||||
this.unbindEvent = bindEvent(ref);
|
||||
}
|
||||
this.cRef = ref;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user