Put focus on name when opening feature edit panel

cf #243
This commit is contained in:
Yohan Boniface 2023-08-30 13:26:16 +02:00
parent 7ed6cfb2a4
commit 96d6b45734

View file

@ -118,6 +118,9 @@ L.U.FeatureMixin = {
callback: this._redraw, // In case we have dynamic options…
})
container.appendChild(builder.build())
this.map.ui.once('panel:ready', () => {
builder.helpers['properties.name'].input.focus()
})
this.appendEditFieldsets(container)
const advancedActions = L.DomUtil.createFieldset(container, L._('Advanced actions'))
this.getAdvancedEditActions(advancedActions)