mirror of https://github.com/vector-im/riot-web
Merge pull request #3396 from matrix-org/bwindels/fix-formatbar-merge-error
Fix error on load in composerpull/21833/head
commit
4876f4c469
|
@ -130,8 +130,8 @@ export default class BasicMessageEditor extends React.Component {
|
|||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
// if caret is a range, take the end position
|
||||
const position = caret.end || caret;
|
||||
// if caret selection is a range, take the end position
|
||||
const position = selection.end || selection;
|
||||
this._setLastCaretFromPosition(position);
|
||||
}
|
||||
if (this.props.placeholder) {
|
||||
|
|
Loading…
Reference in New Issue