@functionalcms/svelte-components 4.12.0 → 4.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -41,7 +41,9 @@
|
|
|
41
41
|
{#snippet renderButtons()}
|
|
42
42
|
<div class={buttonsContainer}>
|
|
43
43
|
{#each buttons as action}
|
|
44
|
-
<Button type={action.type} click={action.click}
|
|
44
|
+
<Button type={action.type} click={action.click} isDisabled={!$form.valid}>
|
|
45
|
+
{action.label}
|
|
46
|
+
</Button>
|
|
45
47
|
{/each}
|
|
46
48
|
</div>
|
|
47
49
|
{/snippet}
|
|
@@ -90,6 +92,11 @@
|
|
|
90
92
|
value={$form[field.name]}
|
|
91
93
|
/>
|
|
92
94
|
{/if}
|
|
95
|
+
{#if superform?.errors[field.name]}
|
|
96
|
+
<span class="error">
|
|
97
|
+
{superform?.errors[field.name]}
|
|
98
|
+
</span>
|
|
99
|
+
{/if}
|
|
93
100
|
{/each}
|
|
94
101
|
</div>
|
|
95
102
|
|