Merge pull request #10966 from jinmingpang/fix-issue-10939

fix: #10939 修复 broadcast 事件无效
This commit is contained in:
hsm-lv 2024-09-26 16:27:28 +08:00 committed by GitHub
commit fabab5a2c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}