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 85bd328 commit 1070193Copy full SHA for 1070193
1 file changed
src/manager/Component.mjs
@@ -360,11 +360,21 @@ class Component extends Manager {
360
let me = this,
361
componentPath = [],
362
i = 0,
363
- len = path?.length || 0;
+ len = path?.length || 0,
364
+ component, id;
365
366
for (; i < len; i++) {
- if (me.has(path[i]) || me.wrapperNodes.get(path[i])) {
367
- componentPath.push(path[i])
+ id = path[i];
368
+
369
+ if (me.has(id) || me.wrapperNodes.get(id)) {
370
+ component = me.get(id);
371
372
+ while (component) {
373
+ componentPath.push(component.id);
374
+ component = component.parent
375
+ }
376
377
+ break
378
}
379
380
0 commit comments