Add extra note focus safety check

This commit is contained in:
Quincy Morgan
2020-10-13 15:54:10 -04:00
parent 0f716e93f8
commit 02dd7f17c0
+1 -1
View File
@@ -162,7 +162,7 @@ export function uiNoteEditor(context) {
.on('input.note-input', changeInput)
.on('blur.note-input', changeInput);
if (_newNote) {
if (!commentTextarea.empty() && _newNote) {
// autofocus the comment field for new notes
commentTextarea.node().focus();
}