From 1bfbde320c85a04fb43c7d62ec9f5e032e316ae5 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Sat, 2 Dec 2023 11:34:02 -0500 Subject: [PATCH] Add working `showPicker` to open files dialog --- umap/static/umap/js/umap.importer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.importer.js b/umap/static/umap/js/umap.importer.js index db02d69b..d57156c7 100644 --- a/umap/static/umap/js/umap.importer.js +++ b/umap/static/umap/js/umap.importer.js @@ -117,7 +117,7 @@ L.U.Importer = L.Class.extend({ open: function () { if (!this.container) this.build() - this.fileInput.focus() + this.fileInput.showPicker() this.map.ui.openPanel({ data: { html: this.container }, className: 'dark' }) },