fix: do not focus title if element is not mounted
This commit is contained in:
@@ -593,7 +593,7 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
focusTitle() {
|
focusTitle() {
|
||||||
document.getElementById(ElementIds.NoteTitleEditor)!.focus();
|
document.getElementById(ElementIds.NoteTitleEditor)?.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
clickedTextArea() {
|
clickedTextArea() {
|
||||||
|
|||||||
Reference in New Issue
Block a user