We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb6ed6 commit f3ced7bCopy full SHA for f3ced7b
src/icons/icon.js
@@ -5,13 +5,13 @@ import { pascalCase, trim } from '../utils/string'
5
import { BIconBlank } from './icons'
6
import { commonIconProps } from './helpers/icon-base'
7
8
-const findIconComponent = (parent, iconName) => {
9
- if (!parent) {
+const findIconComponent = (ctx, iconName) => {
+ if (!ctx) {
10
return null
11
}
12
- const components = (parent.$options || {}).components
+ const components = (ctx.$options || {}).components
13
const iconComponent = components[iconName]
14
- return iconComponent || findIconComponent(parent.$parent, iconName)
+ return iconComponent || findIconComponent(ctx.$parent, iconName)
15
16
17
// Helper BIcon component
0 commit comments