Autofocus the comment field when adding a new OSM note (close #7680)

This commit is contained in:
Quincy Morgan
2020-06-08 10:26:16 -04:00
parent e8a227fc59
commit def3a373a7
+4
View File
@@ -34,6 +34,10 @@ export function modeAddNote(context) {
context
.selectedNoteID(note.id)
.enter(modeSelectNote(context, note.id).newFeature(true));
// autofocus the description field
context.container()
.select('.sidebar textarea.new-comment-input').node().focus();
}