1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

fix: autocomplete errors with TextEditor re-use (#77)

This commit is contained in:
David Wheatley
2021-11-13 21:58:52 +00:00
committed by GitHub
parent 61020eadd6
commit 69657f63b7

View File

@@ -66,7 +66,7 @@ export default function addComposerAutocomplete() {
const returnedUserIds = new Set(returnedUsers.map((u) => u.id()));
const applySuggestion = (replacement) => {
app.composer.editor.replaceBeforeCursor(absMentionStart - 1, replacement + ' ');
this.attrs.composer.editor.replaceBeforeCursor(absMentionStart - 1, replacement + ' ');
dropdown.hide();
};