Skip to content

Conversation

@akulistus
Copy link

@akulistus akulistus commented Dec 29, 2025

Problem:
If readOnly is initially set to true, Console tab displays warning:
EventDispatcher .off(): there is no subscribers for event "editor mobile layout toggled". Probably, .off() called before .on().

Issue:
#2772

Solution:
Add a guard to prevent unsubscribing from an event that was never subscribed when initial read-only mode is set to true.

@akulistus akulistus requested a review from neSpecc December 29, 2025 23:54
@akulistus akulistus force-pushed the fix-event-dispatcher-readonly-warning branch from c95d16b to af1afd2 Compare January 3, 2026 11:29
@akulistus akulistus requested a review from neSpecc January 3, 2026 11:32
Copy link
Member

@neSpecc neSpecc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add a note at the CHANGELOG.md

@akulistus akulistus force-pushed the fix-event-dispatcher-readonly-warning branch from af1afd2 to d80a377 Compare January 3, 2026 20:06
@akulistus akulistus requested a review from neSpecc January 3, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants