File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
soba/staging/src/bb-anchor Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -191,15 +191,17 @@ class NgtRenderer implements Renderer2 {
191
191
pRS [ NgtRendererClassId . type ] === 'dom' &&
192
192
( newChild instanceof Text || cRS [ NgtRendererClassId . type ] === 'dom' )
193
193
) {
194
- this . store . setParent ( newChild , parent ) ;
195
194
this . store . addChild ( parent , newChild ) ;
196
195
this . delegate . appendChild ( parent , newChild ) ;
197
- if ( this . shouldFindGrandparentInstance ( pRS , cRS , newChild ) ) {
198
- // we'll try to get the grandparent instance here so that we can run appendChild with both instances
199
- const closestGrandparentInstance = this . store . getClosestParentWithInstance ( parent ) ;
200
- if ( closestGrandparentInstance ) this . appendChild ( closestGrandparentInstance , newChild ) ;
201
- return ;
196
+ if ( cRS ) {
197
+ this . store . setParent ( newChild , parent ) ;
198
+ if ( this . shouldFindGrandparentInstance ( pRS , cRS , newChild ) ) {
199
+ // we'll try to get the grandparent instance here so that we can run appendChild with both instances
200
+ const closestGrandparentInstance = this . store . getClosestParentWithInstance ( parent ) ;
201
+ if ( closestGrandparentInstance ) this . appendChild ( closestGrandparentInstance , newChild ) ;
202
+ }
202
203
}
204
+
203
205
return ;
204
206
}
205
207
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ export class NgtsBBAnchor {
55
55
effect ( ( ) => {
56
56
const group = this . groupRef . nativeElement ;
57
57
if ( ! group ) return ;
58
- console . log ( group ) ;
59
58
if ( group . parent ?. parent ) {
60
59
this . parentRef . nativeElement = group . parent . parent ;
61
60
group . parent . parent . add ( group ) ;
You can’t perform that action at this time.
0 commit comments