Skip to content

Commit

Permalink
fix: set listeners only to editable messages, remove listeners when u…
Browse files Browse the repository at this point in the history
…nmount

Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy authored and backportbot[bot] committed Nov 9, 2024
1 parent 7276147 commit dfa946f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,10 @@ export default {
this.codeBlocks = Array.from(this.$refs.messageMain?.querySelectorAll('pre'))
},

beforeDestroy() {
EventBus.off('editing-message-processing', this.setIsEditing)
},

methods: {
handleMarkdownMouseOver(event) {
if (!this.containsCodeBlocks) {
Expand Down

0 comments on commit dfa946f

Please sign in to comment.