fix: add disabled in component when is a button (#233)

This commit is contained in:
Acidiney Dias
2023-10-18 17:16:24 +01:00
committed by GitHub
parent 49d4666b5c
commit d192a693cf

View File

@@ -1,5 +1,5 @@
<template> <template>
<component :is="buttonComponent" :class="wrapperClasses" :[linkAttr]="href"> <component :is="buttonComponent" :disabled="buttonComponent === 'button' && disabled" :class="wrapperClasses" :[linkAttr]="href">
<div v-if="!isOutlineGradient && ($slots.prefix || loadingPrefix)" class="mr-2"> <div v-if="!isOutlineGradient && ($slots.prefix || loadingPrefix)" class="mr-2">
<!--automatically add mr class if slot provided or loading --> <!--automatically add mr class if slot provided or loading -->
<spinner :color="spinnerColor" :size="spinnerSize" v-if="loadingPrefix" /> <spinner :color="spinnerColor" :size="spinnerSize" v-if="loadingPrefix" />