Skip to content

Prevent duplicate listeners in editor preview controller#2372

Merged
tf merged 1 commit intocodevise:masterfrom
tf:double-del
Mar 16, 2026
Merged

Prevent duplicate listeners in editor preview controller#2372
tf merged 1 commit intocodevise:masterfrom
tf:double-del

Conversation

@tf
Copy link
Member

@tf tf commented Mar 16, 2026

Move READY message handling from ContentDecorator up to EntryDecorator so that it sits outside the content tree that gets re-mounted in the editor when WidgetPresenceWrapper receives widget data. Guard the READY handler in PreviewMessageController so that a second READY message from the iframe does not register duplicate collection watchers and event listeners.

REDMINE-21246

Move READY message handling from ContentDecorator up to EntryDecorator
so that it sits outside the content tree that gets re-mounted in the
editor when WidgetPresenceWrapper receives widget data. Guard the
READY handler in PreviewMessageController so that a second READY
message from the iframe does not register duplicate collection
watchers and event listeners.

REDMINE-21246
@tf tf added this to the v17.2 milestone Mar 16, 2026
@tf tf merged commit 1eb6a6d into codevise:master Mar 16, 2026
18 checks passed
@tf tf deleted the double-del branch March 16, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant