mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 13:18:15 +02:00
Autofocus the comment field when adding a new OSM note (close #7680)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user