Skip to content

Commit 2f209f9

Browse files
committed
fix!: rename submit button property to isButtonEnabled
1 parent c988e7b commit 2f209f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<script setup lang="ts">
22
defineProps({
3-
disabled: Boolean,
3+
isButtonEnabled: Boolean,
44
})
55
</script>
66

77
<template>
88
<UButton
99
type="submit"
1010
color="neutral"
11-
:disabled="!disabled"
11+
:disabled="!isButtonEnabled"
1212
class="w-full flex justify-center cursor-pointer"
13-
:class="disabled ? 'bg-primary' : ''"
13+
:class="isButtonEnabled ? 'bg-primary' : ''"
1414
label="My custom send button"
1515
/>
1616
</template>

src/runtime/components/AutoForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const submitButtonComponent = computed(() => {
144144

145145
<div class="space-y-2">
146146
<div v-if="submitButtonComponent">
147-
<component :is="toRaw(submitButtonComponent)" v-bind="{ disabled: isButtonEnabled }" />
147+
<component :is="toRaw(submitButtonComponent)" v-bind="{ isButtonEnabled }" />
148148
</div>
149149
<UButton
150150
v-else

0 commit comments

Comments
 (0)