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:
Yohan Boniface 2024-05-09 17:44:05 +02:00 committed by GitHub
commit 6fda1e79e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1258,7 +1258,7 @@ U.SearchControl = L.Control.extend({
this.map.fire('dataload', { id: id })
})
this.search.resultsContainer = resultsContainer
this.map.panel.open({ content: container }).then(input.focus)
this.map.panel.open({ content: container }).then(input.focus())
},
})