Merge pull request #7730 from pianruijie/master

fix: 过滤已执行事件监听
This commit is contained in:
hsm-lv 2023-09-07 19:20:39 +08:00 committed by GitHub
commit 7a99d3f9ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ export const bindEvent = (renderer: any) => {
// eventName用来避免过滤广播事件
rendererEventListeners = rendererEventListeners.filter(
(item: RendererEventListener) =>
item.renderer !== renderer && eventName !== undefined
item.renderer === renderer && eventName !== undefined
? item.type !== eventName
: true
);