Skip to content

Commit

Permalink
Merge pull request #4266 from AngelFQC/4265
Browse files Browse the repository at this point in the history
Fix #4265: button iconClass is not assigned when component is unstyled
  • Loading branch information
tugcekucukoglu committed Aug 15, 2023
2 parents 8c54e80 + a45ddef commit 2af5281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/button/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<span v-if="loadingIcon" :class="[cx('loadingIcon'), cx('icon'), loadingIcon]" v-bind="ptm('loadingIcon')" />
<SpinnerIcon v-else :class="[cx('loadingIcon'), cx('icon')]" spin v-bind="ptm('loadingIcon')" />
</slot>
<slot v-else name="icon" :class="cx('icon')">
<span v-if="icon" :class="[cx('icon'), icon]" v-bind="ptm('icon')"></span>
<slot v-else name="icon" :class="[cx('icon'), icon, iconClass]">
<span v-if="icon" :class="[cx('icon'), icon, iconClass]" v-bind="ptm('icon')"></span>
</slot>
<span :class="cx('label')" v-bind="ptm('label')">{{ label || '&nbsp;' }}</span>
<Badge v-if="badge" :value="badge" :class="badgeClass" :unstyled="unstyled" v-bind="ptm('badge')"></Badge>
Expand Down

0 comments on commit 2af5281

Please sign in to comment.