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:
1 file changed
+1
-3
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user