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:
@@ -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();
|
||||
};
|
||||
|
Reference in New Issue
Block a user