You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
make sure the update callback gets a caret when calling reset
This commit is contained in:
@@ -149,6 +149,9 @@ export default class EditorModel {
|
|||||||
|
|
||||||
reset(serializedParts, caret, inputType) {
|
reset(serializedParts, caret, inputType) {
|
||||||
this._parts = serializedParts.map(p => this._partCreator.deserializePart(p));
|
this._parts = serializedParts.map(p => this._partCreator.deserializePart(p));
|
||||||
|
if (!caret) {
|
||||||
|
caret = this.getPositionAtEnd();
|
||||||
|
}
|
||||||
// close auto complete if open
|
// close auto complete if open
|
||||||
// this would happen when clearing the composer after sending
|
// this would happen when clearing the composer after sending
|
||||||
// a message with the autocomplete still open
|
// a message with the autocomplete still open
|
||||||
|
|||||||
Reference in New Issue
Block a user