Skip to content

Commit f378aef

Browse files
fix(b-card): handle header-html and footer-html props correctly (fixes #5038) (#5039)
Fixes #5038 Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>
1 parent ae84118 commit f378aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/card/card.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const BCard = /*#__PURE__*/ Vue.extend({
5858
}
5959
}
6060

61-
if (props.header || hasNormalizedSlot('header', $scopedSlots, $slots)) {
61+
if (props.header || props.headerHtml || hasNormalizedSlot('header', $scopedSlots, $slots)) {
6262
header = h(
6363
BCardHeader,
6464
{ props: pluckProps(headerProps, props) },
@@ -72,7 +72,7 @@ export const BCard = /*#__PURE__*/ Vue.extend({
7272
content = [h(BCardBody, { props: pluckProps(bodyProps, props) }, [...content])]
7373
}
7474

75-
if (props.footer || hasNormalizedSlot('footer', $scopedSlots, $slots)) {
75+
if (props.footer || props.footerHtml || hasNormalizedSlot('footer', $scopedSlots, $slots)) {
7676
footer = h(
7777
BCardFooter,
7878
{

0 commit comments

Comments
 (0)