From 84b904c71ddc4d07b1b395b808c97f57a0205082 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 9 May 2024 16:07:35 +0200 Subject: [PATCH] fix: really focus on search input after showing the panel fix #1806 --- umap/static/umap/js/umap.controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index a2e2a9db..d96f57d3 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -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()) }, })