Remove touch check for error consistency
This commit is contained in:
parent
2eccc935d9
commit
777e8f91f1
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue