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

Commit

Permalink
Add explicit button type to button component
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jordanmaslyn authored Nov 7, 2017
1 parent d15ed4c commit 013dee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/WizardButton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button class="wizard-btn" tabindex="-1">
<button class="wizard-btn" tabindex="-1" type="button">
<slot></slot>
</button>
</template>
Expand Down

0 comments on commit 013dee7

Please sign in to comment.