Skip to content

Commit e689fb1

Browse files
committed
[playground] Remove redundant elements
1 parent 94fbf3e commit e689fb1

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

apps/playground/src/app.svelte

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@
7878
7979
8080
let disabled = $state(false);
81-
let inert = $state(false);
8281
let html5Validation = $state(false);
83-
let errorsList = $state(true);
8482
let doFocusOnFirstError = $state(true);
8583
let errors: Errors = $state.raw(
8684
samples[initialSampleName].errors ?? new SvelteMap()
@@ -115,18 +113,10 @@
115113
<input type="checkbox" bind:checked={disabled} />
116114
Disabled
117115
</label>
118-
<label>
119-
<input type="checkbox" bind:checked={inert} />
120-
Inert (readonly)
121-
</label>
122116
<label>
123117
<input type="checkbox" bind:checked={html5Validation} />
124118
HTML5 validation
125119
</label>
126-
<label>
127-
<input type="checkbox" bind:checked={errorsList} />
128-
Errors list
129-
</label>
130120
<label>
131121
<input type="checkbox" bind:checked={doFocusOnFirstError} />
132122
Focus on first error
@@ -222,7 +212,6 @@
222212
{uiSchema}
223213
{validator}
224214
{translation}
225-
{inert}
226215
{disabled}
227216
novalidate={!html5Validation || undefined}
228217
inputsValidationMode={validationEvent | validationAfter}
@@ -237,18 +226,6 @@
237226
console.log("errors", errors);
238227
}}
239228
/>
240-
{#if errorsList && errors.size > 0}
241-
<div style="color: red; padding-bottom: 1rem;">
242-
<span style="font-size: larger; font-weight: bold;">Errors</span>
243-
<ui>
244-
{#each errors as [field, fieldErrors] (field)}
245-
{#each fieldErrors as err}
246-
<li>{err.propertyTitle} {err.message}</li>
247-
{/each}
248-
{/each}
249-
</ui>
250-
</div>
251-
{/if}
252229
</ShadowHost>
253230
</div>
254231
</div>

0 commit comments

Comments
 (0)