Make file input always exist in DOM

Hide instead of remove from DOM so that it doesn't reset when options change
This commit is contained in:
Thomas Weber committed 2021-08-28 19:11:26 -05:00
1 parent 7d3dca88de
commit 71f10ca3a2
1 file changed
+1 -3
+1 -3
View File
@@ -184,9 +184,7 @@
<input type="radio" bind:group={$type} value="file">
{$_('select.file')}
</label>
{#if $type === "file"}
<input bind:files={files} bind:this={fileInputElement} type="file" accept=".sb,.sb2,.sb3">
{/if}
<input hidden={$type !== "file"} bind:files={files} bind:this={fileInputElement} type="file" accept=".sb,.sb2,.sb3">
</div>
<div class="option">
<label>