fix rename that didn't make it through rebasing

pull/21833/head
Bruno Windels 2019-09-06 11:58:27 +02:00
parent 5014b606db
commit dd1c01068f
1 changed files with 2 additions and 2 deletions

View File

@ -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) {