Add non working ways to focus the importer file input
This commit is contained in:
parent
42906ea8b4
commit
67f6fa7587
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,7 @@ L.U.Importer = L.Class.extend({
|
||||||
this.fileBox = L.DomUtil.create('div', 'formbox', this.container)
|
this.fileBox = L.DomUtil.create('div', 'formbox', this.container)
|
||||||
this.fileInput = L.DomUtil.element(
|
this.fileInput = L.DomUtil.element(
|
||||||
'input',
|
'input',
|
||||||
{ type: 'file', multiple: 'multiple' },
|
{ type: 'file', multiple: 'multiple', autofocus: true },
|
||||||
this.fileBox
|
this.fileBox
|
||||||
)
|
)
|
||||||
this.urlInput = L.DomUtil.element(
|
this.urlInput = L.DomUtil.element(
|
||||||
|
@ -117,6 +117,7 @@ L.U.Importer = L.Class.extend({
|
||||||
|
|
||||||
open: function () {
|
open: function () {
|
||||||
if (!this.container) this.build()
|
if (!this.container) this.build()
|
||||||
|
this.fileInput.focus()
|
||||||
this.map.ui.openPanel({ data: { html: this.container }, className: 'dark' })
|
this.map.ui.openPanel({ data: { html: this.container }, className: 'dark' })
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue