Skip to content

Commit c29a011

Browse files
committed
disable form.card primary button when loading
1 parent d3b395e commit c29a011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AutoForm.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</div>
3232
<div class="flex justify-end">
3333
<div></div>
34-
<PrimaryButton :disabled="allowSubmit ? !allowSubmit(model) : false">{{ submitLabel }}</PrimaryButton>
34+
<PrimaryButton :disabled="loading || (allowSubmit ? !allowSubmit(model) : false)">{{ submitLabel }}</PrimaryButton>
3535
<slot name="rightbuttons" :instance="getCurrentInstance()?.exposed" :model="model"></slot>
3636
</div>
3737
</div>

0 commit comments

Comments
 (0)