mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 09:57:50 +02:00
Add extra note focus safety check
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user