mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
Merge pull request #3021 from matrix-org/bwindels/typebeforefirstpill
Message editing: dont jump to next part when inserting at *start* of uneditable part
This commit is contained in:
commit
3c778e80b0
1 changed files with 3 additions and 2 deletions
|
@ -232,8 +232,9 @@ export default class EditorModel {
|
|||
index += 1;
|
||||
this._insertPart(index, splitPart);
|
||||
}
|
||||
} else {
|
||||
// not-editable, insert str after this part
|
||||
} else if (offset !== 0) {
|
||||
// not-editable part, caret is not at start,
|
||||
// so insert str after this part
|
||||
addLen += part.text.length - offset;
|
||||
index += 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue