diff --git a/src/TCMention/index.js b/src/TCMention/index.js index 2acd409..ab64345 100644 --- a/src/TCMention/index.js +++ b/src/TCMention/index.js @@ -361,7 +361,7 @@ export const TCMention = MediumEditor.Extension.extend({ }, updatePanelContent() { - this.renderPanelContent(this.mentionPanel, this.word, this.handleSelectMention); + this.renderPanelContent(this.mentionPanel, this.word, this.handleSelectMention.bind(this)); }, handleSelectMention(selectedText, details) {