fixed "view coc" button causing application submit

This commit is contained in:
2025-12-12 10:56:07 -05:00
parent d7908570b2
commit 2a841ebf27

View File

@@ -299,7 +299,7 @@ async function onDialogToggle(state: boolean) {
<div class="flex items-center gap-2">
<Checkbox :model-value="value" @update:model-value="handleChange" :disabled="readOnly" />
<span>By checking this box, you accept the <Button variant="link" class="p-0 h-min"
@click="showCoC = true">Code of
@click.prevent.stop="showCoC = true">Code of
Conduct</Button>.</span>
</div>
</FormControl>
@@ -310,7 +310,7 @@ async function onDialogToggle(state: boolean) {
</FormField>
<div class="pt-2" v-if="!readOnly">
<Button type="submit" :onClick="() => console.log('hi')" :disabled="readOnly">Submit Application</Button>
<Button type="submit" :disabled="readOnly">Submit Application</Button>
</div>
<Dialog :open="showCoC" @update:open="onDialogToggle">