Repository navigation
fix(readonly): prevent warning on initial read-only mode toggle - #2969
Merged
Merged
Conversation
akulistus
requested review from
TatianaFomina,
gohabereg,
ilyamore88 and
neSpecc
as code owners
December 29, 2025 13:30
neSpecc
reviewed
Dec 29, 2025
neSpecc
reviewed
Dec 30, 2025
akulistus
force-pushed
the
fix-event-dispatcher-readonly-warning
branch
from
January 3, 2026 11:29
c95d16b to
af1afd2
Compare
neSpecc
approved these changes
Jan 3, 2026
neSpecc
reviewed
Jan 3, 2026
neSpecc
left a comment
Member
There was a problem hiding this comment.
Please, add a note at the CHANGELOG.md
akulistus
force-pushed
the
fix-event-dispatcher-readonly-warning
branch
from
January 3, 2026 20:06
af1afd2 to
d80a377
Compare
neSpecc
approved these changes
Jan 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
If
readOnlyis initially set totrue, 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.