mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-10-25 14:17:14 +00:00
hotfix in selectFile
This commit is contained in:
1 parent
76813fae8e
commit
02520636ad
1 file changed
+1
-1
@@ -14,7 +14,6 @@ fun selectFile(
|
||||
(document.createElement("input") {
|
||||
(this as HTMLInputElement).apply {
|
||||
type = "file"
|
||||
inputSetup(this)
|
||||
onchange = {
|
||||
runCatching {
|
||||
files ?.get(0) ?: error("File must not be null")
|
||||
@@ -24,6 +23,7 @@ fun selectFile(
|
||||
onFailure(it)
|
||||
}
|
||||
}
|
||||
inputSetup(this)
|
||||
}
|
||||
} as HTMLElement).click()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user