only append colon to user-pill when at start of composer

by passing position to autocomplete, so completion
can depend on where the pill-candidate appears.
This commit is contained in:
Bruno Windels 2019-08-29 17:47:14 +02:00
parent 2ff2ff0e75
commit c9572250be
2 changed files with 6 additions and 3 deletions

View file

@ -226,7 +226,7 @@ export default class EditorModel {
}
// not _autoComplete, only there if active part is autocomplete part
if (this.autoComplete) {
return this.autoComplete.onPartUpdate(part, pos.offset);
return this.autoComplete.onPartUpdate(part, pos);
}
} else {
this._activePartIdx = null;