Open
Description
Description
Hello.
With a modal when it opens the first button present is selected. Is there a way to change selection order or prevent it completely?
In exemple below the reset button is pre-selected.
I could reorder buttons instead but I would like no pre-selections instead and prevent users' "miss-click". Thanks.
<UModal v-model="dialog" prevent-close>
<UCard>
<p>Reset data or continue?</p>
<div class="flex justify-between">
<UButton color="gray" variant="ghost" @click="reset">
Delete current data
<UIcon name="i-heroicons-x-mark-20-solid" class="text-red-600" />
</UButton>
<UButton color="gray" variant="ghost" @click="continue">
Continue
<UIcon name="i-mdi-arrow-right-circle" class="text-primary" />
</UButton>
</div>
</UCard>
</UModal>
Activity