Skip to content

Commit 0e7dd94

Browse files
committed
fix: simplify component type and variant handling in Button component
1 parent d43012d commit 0e7dd94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ui/Button.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<component
3-
:is="as || 'button'"
4-
:type="as === 'button' || !as ? 'button' : undefined"
3+
:is="as"
4+
:type="as === 'button' ? 'button' : undefined"
55
:class="buttonClasses"
66
v-bind="$attrs"
77
>

0 commit comments

Comments
 (0)