Remove touch check for error consistency

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

View File

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