Skip to content
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.

Commit

Permalink
Bind handleSelectMention when calling it.
Browse files Browse the repository at this point in the history
  • Loading branch information
bago2k4 committed Oct 19, 2020
1 parent fe793c9 commit bcf650c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TCMention/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bcf650c

Please sign in to comment.