File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,15 @@ class InElementSupportProvider {
35
35
36
36
const didAppendNode = NewElementBuilder . prototype . didAppendNode ;
37
37
NewElementBuilder . prototype . didAppendNode = function ( ...args ) {
38
- args [ 0 ] . __emberInspectorParentNode = self . currentNode ;
38
+ const parent = this . env . debugRenderTree . stack . current ;
39
+ args [ 0 ] . __emberInspectorParentNode = this . env . debugRenderTree . nodeFor ( parent ) ;
39
40
return didAppendNode . call ( this , ...args ) ;
40
41
} ;
41
42
42
43
const pushElement = NewElementBuilder . prototype . pushElement ;
43
44
NewElementBuilder . prototype . pushElement = function ( ...args ) {
44
- args [ 0 ] . __emberInspectorParentNode = self . currentNode ;
45
+ const parent = this . env . debugRenderTree . stack . current ;
46
+ args [ 0 ] . __emberInspectorParentNode = this . env . debugRenderTree . nodeFor ( parent ) ;
45
47
return pushElement . call ( this , ...args ) ;
46
48
} ;
47
49
You can’t perform that action at this time.
0 commit comments