mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
Discard error on input
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
+3
-2
@@ -8,7 +8,7 @@
|
||||
description: string;
|
||||
resolve?: boolean;
|
||||
editable: boolean;
|
||||
error?: string;
|
||||
error?: string | null;
|
||||
example?: string;
|
||||
url?: string;
|
||||
}
|
||||
@@ -182,7 +182,8 @@
|
||||
<div>
|
||||
{#if field.editable && editable}
|
||||
<input name={field.name} class="field" placeholder={field.placeholder}
|
||||
on:change={validate} value={field.value || ""} type="text" {disabled} />
|
||||
on:change={validate} on:input={() => field.error = null}
|
||||
value={field.value || ""} type="text" {disabled} />
|
||||
{:else}
|
||||
<span class="field">
|
||||
{#if field.value}
|
||||
|
||||
Reference in New Issue
Block a user