make sure the update callback gets a caret when calling reset
This commit is contained in:
parent
4575aaa9f6
commit
124b7135cd
1 changed files with 3 additions and 0 deletions
|
@ -149,6 +149,9 @@ export default class EditorModel {
|
|||
|
||||
reset(serializedParts, caret, inputType) {
|
||||
this._parts = serializedParts.map(p => this._partCreator.deserializePart(p));
|
||||
if (!caret) {
|
||||
caret = this.getPositionAtEnd();
|
||||
}
|
||||
// close auto complete if open
|
||||
// this would happen when clearing the composer after sending
|
||||
// a message with the autocomplete still open
|
||||
|
|
Loading…
Reference in a new issue