Skip to content

Commit aaba97f

Browse files
committed
fix: QBreadcrumbs el detection when using tag in pascal case or camel case
1 parent 8cc2172 commit aaba97f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/components/breadcrumbs/QBreadcrumbs.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ export default {
3333
color = `text-${this.color}`,
3434
active = `text-${this.activeColor}`
3535

36-
this.$slots.default.forEach((comp, i) => {
37-
if (comp.componentOptions && comp.componentOptions.tag === 'q-breadcrumbs-el') {
36+
for (const i in this.$slots.default) {
37+
const comp = this.$slots.default[i]
38+
if (
39+
comp.componentOptions &&
40+
['q-breadcrumbs-el', 'QBreadcrumbsEl', 'qBreadcrumbsEl'].includes(comp.componentOptions.tag)
41+
) {
3842
const middle = i < length
3943

4044
child.push(h('div', {
@@ -48,7 +52,7 @@ export default {
4852
else {
4953
child.push(comp)
5054
}
51-
})
55+
}
5256

5357
return h('div', {
5458
staticClass: 'q-breadcrumbs flex gutter-xs items-center overflow-hidden',

0 commit comments

Comments
 (0)