This commit is contained in:
2021-11-22 01:58:09 +01:00
parent 12d2b3b99e
commit 2f86c4169f
7 changed files with 18 additions and 20 deletions

View File

@@ -1,6 +1,4 @@
<script>
import { isEqual } from 'lodash'
let text = 'Select File'
export let value = undefined
@@ -30,6 +28,11 @@
}
</script>
<label class="btn">
{#if error}Invalid file{:else}{text}{/if}
<input bind:this={input} on:change={validate} class="input" accept="application/json" type="file" />
</label>
<style>
label {
width: 18em;
@@ -40,8 +43,3 @@
display: none;
}
</style>
<label class="btn">
{#if error}Invalid file{:else}{text}{/if}
<input bind:this={input} on:change={validate} class="input" accept="application/json" type="file" />
</label>