You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
catch this for now as caret behaviour is still a bit flaky
This commit is contained in:
@@ -66,9 +66,13 @@ export default class MessageEditor extends React.Component {
|
||||
renderModel(this._editorRef, this.model);
|
||||
}
|
||||
if (caret) {
|
||||
setCaretPosition(this._editorRef, caret);
|
||||
try {
|
||||
setCaretPosition(this._editorRef, caret);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
|
||||
console.log("_updateEditorState", this.state.autoComplete, this.model.autoComplete);
|
||||
this.setState({autoComplete: this.model.autoComplete});
|
||||
const modelOutput = this._editorRef.parentElement.querySelector(".model");
|
||||
modelOutput.textContent = JSON.stringify(this.model.serializeParts(), undefined, 2);
|
||||
|
||||
Reference in New Issue
Block a user