Skip to content

Commit 42175f8

Browse files
jacobmllr95pi0
authored andcommitted
feat(breadcrumb-link): support children elements (#1832) (#1833)
1 parent e3e5439 commit 42175f8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/breadcrumb/breadcrumb-link.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,13 @@ export default {
2828
render (h, { props: suppliedProps, data, children }) {
2929
const tag = suppliedProps.active ? 'span' : Link
3030

31-
let componentData = {
32-
props: pluckProps(props, suppliedProps),
33-
domProps: { innerHTML: suppliedProps.text }
34-
}
35-
31+
let componentData = { props: pluckProps(props, suppliedProps) }
3632
if (suppliedProps.active) {
3733
componentData.attrs = { 'aria-current': suppliedProps.ariaCurrent }
3834
} else {
3935
componentData.attrs = { href: suppliedProps.href }
4036
}
4137

42-
return h(tag, mergeData(data, componentData), children)
38+
return h(tag, mergeData(data, componentData), children || suppliedProps.text)
4339
}
4440
}

0 commit comments

Comments
 (0)