Fixes identified by TS
This commit is contained in:
parent
e768ecb3d0
commit
0a5abb09f4
2 changed files with 5 additions and 4 deletions
|
@ -395,7 +395,7 @@ export default class EditMessageComposer extends React.Component<IProps, IState>
|
|||
const sel = document.getSelection();
|
||||
let caret;
|
||||
if (sel.focusNode) {
|
||||
caret = getCaretOffsetAndText(this.editorRef.current, sel).caret;
|
||||
caret = getCaretOffsetAndText(this.editorRef.current?.editorRef.current, sel).caret;
|
||||
}
|
||||
const parts = this.model.serializeParts();
|
||||
// if caret is undefined because for some reason there isn't a valid selection,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue