From c62c32787877da6a3c04c66f7554cf26970748c1 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 5 Dec 2023 12:58:00 +0100 Subject: [PATCH] Importer: call showPicker only on openFiles, not at each open This allows to open the files dialog with Ctrl+O --- umap/static/umap/js/umap.importer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.importer.js b/umap/static/umap/js/umap.importer.js index d57156c7..9cd96c76 100644 --- a/umap/static/umap/js/umap.importer.js +++ b/umap/static/umap/js/umap.importer.js @@ -117,13 +117,12 @@ L.U.Importer = L.Class.extend({ open: function () { if (!this.container) this.build() - this.fileInput.showPicker() this.map.ui.openPanel({ data: { html: this.container }, className: 'dark' }) }, openFiles: function () { this.open() - this.fileInput.click() + this.fileInput.showPicker() }, submit: function () {