Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 013dee7

Browse files
authored
Add explicit button type to button component
Without an explicit type, the button defaults to a submit button if found within a form which can be problematic. Adding type="button" avoids that issue.
1 parent d15ed4c commit 013dee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/WizardButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<button class="wizard-btn" tabindex="-1">
2+
<button class="wizard-btn" tabindex="-1" type="button">
33
<slot></slot>
44
</button>
55
</template>

0 commit comments

Comments
 (0)