Skip to content

Commit

Permalink
🐛 Fix tabs with room editor not opening again if this room editor has…
Browse files Browse the repository at this point in the history
… an event editor open
  • Loading branch information
CosmoMyzrailGorynych committed Sep 19, 2024
1 parent 5ff93c0 commit 74b570d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riotTags/editors/room-editor/room-events-editor.tag
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ room-events-editor.aDimmer.relative.pad.fadein(onclick="{tryClose}")

this.focusEditor = (tab) => {
if (tab?.uid === this.room.uid) {
this.refs.codeeditor.codeEditor.focus();
this.refs.codeeditor.codeEditor?.focus();
}
};
window.signals.on('globalTabChanged', this.focusEditor);
Expand Down

0 comments on commit 74b570d

Please sign in to comment.