fix: really focus on search input after showing the panel

fix #1806
This commit is contained in:
Yohan Boniface 2024-05-09 16:07:35 +02:00
parent 4ebbf8ed11
commit 84b904c71d

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())
},
})