Skip to content

Commit

Permalink
fix: use "button" as default type for Vue UtrechtButton
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed May 28, 2022
1 parent cb79b8d commit 2663bb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/component-library-vue/src/UtrechtButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
appearance?: string;
busy?: boolean;
disabled?: boolean;
type?: string;
type?: "button" | "reset" | "submit";
}>();
</script>

Expand All @@ -20,6 +20,7 @@
'utrecht-button--subtle': appearance === 'subtle-button',
}"
:disabled="disabled"
:type="type || 'button'"
>
<slot />
</button>
Expand Down

0 comments on commit 2663bb5

Please sign in to comment.