Remove touch check for error consistency

This commit is contained in:
Mel O'Hagan 2022-10-24 09:46:53 +01:00
parent 2eccc935d9
commit 777e8f91f1
1 changed files with 2 additions and 6 deletions

View File

@ -94,9 +94,7 @@
type={schema[configKey].type} type={schema[configKey].type}
on:change on:change
bind:value={config[configKey]} bind:value={config[configKey]}
on:blur={($validation.touched[configKey] = true)} error={$validation.errors[configKey]}
error={$validation.touched[configKey] &&
$validation.errors[configKey]}
/> />
</div> </div>
{:else} {:else}
@ -106,9 +104,7 @@
type={schema[configKey].type} type={schema[configKey].type}
on:change on:change
bind:value={config[configKey]} bind:value={config[configKey]}
on:blur={($validation.touched[configKey] = true)} error={$validation.errors[configKey]}
error={$validation.touched[configKey] &&
$validation.errors[configKey]}
/> />
</div> </div>
{/if} {/if}