Merge pull request #1293 from umap-project/feature-name-focus
Put focus on name when opening feature edit panel
This commit is contained in:
commit
1cd1094398
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue