fix(migration): reset file input value on cancel
resetToUpload() cleared state but not the file input's value, so re-selecting the same file after cancel would not trigger a change event in the browser.
This commit is contained in:
parent
ada0dc1ffa
commit
c6cdd551a1
|
|
@ -363,6 +363,9 @@ function resetToUpload() {
|
|||
detectionResult.value = null
|
||||
previewResult.value = null
|
||||
error.value = ''
|
||||
if (uploadInput.value) {
|
||||
uploadInput.value.value = ''
|
||||
}
|
||||
config.value = {
|
||||
delimiter: ',',
|
||||
quote_char: '"',
|
||||
|
|
|
|||
Loading…
Reference in New Issue