Merge pull request #1807 from umap-project/fix-search-autofocus
fix: really focus on search input after showing the panel
This commit is contained in:
commit
6fda1e79e3
1 changed files with 1 additions and 1 deletions
|
@ -1258,7 +1258,7 @@ U.SearchControl = L.Control.extend({
|
||||||
this.map.fire('dataload', { id: id })
|
this.map.fire('dataload', { id: id })
|
||||||
})
|
})
|
||||||
this.search.resultsContainer = resultsContainer
|
this.search.resultsContainer = resultsContainer
|
||||||
this.map.panel.open({ content: container }).then(input.focus)
|
this.map.panel.open({ content: container }).then(input.focus())
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue