fix: do not focus title if element is not mounted

This commit is contained in:
Baptiste Grob
2020-11-13 12:06:28 +01:00
parent 4da1032268
commit 0023447d54

View File

@@ -593,7 +593,7 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> {
} }
focusTitle() { focusTitle() {
document.getElementById(ElementIds.NoteTitleEditor)!.focus(); document.getElementById(ElementIds.NoteTitleEditor)?.focus();
} }
clickedTextArea() { clickedTextArea() {