Merge pull request #3396 from matrix-org/bwindels/fix-formatbar-merge-error
Fix error on load in composer
This commit is contained in:
commit
4876f4c469
1 changed files with 2 additions and 2 deletions
|
@ -130,8 +130,8 @@ export default class BasicMessageEditor extends React.Component {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
// if caret is a range, take the end position
|
// if caret selection is a range, take the end position
|
||||||
const position = caret.end || caret;
|
const position = selection.end || selection;
|
||||||
this._setLastCaretFromPosition(position);
|
this._setLastCaretFromPosition(position);
|
||||||
}
|
}
|
||||||
if (this.props.placeholder) {
|
if (this.props.placeholder) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue