Skip to content

Commit 8b086a9

Browse files
author
pooya parsa
committed
fix(breadcrumb-link): correctly use html/text
1 parent 210f9f7 commit 8b086a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/breadcrumb/breadcrumb-link.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { mergeData } from 'vue-functional-data-merge'
22
import pluckProps from '../../utils/pluck-props'
33
import { assign } from '../../utils/object'
44
import BLink, { propsFactory as linkPropsFactory } from '../link/link'
5-
import { htmlOrText } from '../../utils/html'
65

76
export const props = assign(linkPropsFactory(), {
87
text: {
@@ -45,7 +44,7 @@ export default {
4544
return h(
4645
tag,
4746
mergeData(data, componentData),
48-
children || htmlOrText(suppliedProps.html, suppliedProps.text)
47+
children || suppliedProps.html || suppliedProps.text
4948
)
5049
}
5150
}

0 commit comments

Comments
 (0)