File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -47,3 +47,4 @@ Thumbs.db
4747vite.config. * .timestamp *
4848vitest.config. * .timestamp *
4949.aider *
50+ CLAUDE.md
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ export class NgtPortalContent {
9191 constructor ( ) {
9292 const host = inject < ElementRef < HTMLElement > > ( ElementRef , { skipSelf : true } ) ;
9393 const { element } = inject ( ViewContainerRef ) ;
94- const injector = inject ( Injector ) ;
9594 const commentNode = element . nativeElement ;
9695 const store = injectStore ( ) ;
9796
@@ -246,11 +245,8 @@ export class NgtPortalImpl {
246245 return ;
247246 }
248247
249- this . portalViewRef = anchor . createEmbeddedView (
250- content ,
251- { injector : this . injector } ,
252- { injector : this . injector } ,
253- ) ;
248+ const portalViewContext = { injector : this . injector } ;
249+ this . portalViewRef = anchor . createEmbeddedView ( content , portalViewContext , portalViewContext ) ;
254250 this . portalViewRef . detectChanges ( ) ;
255251 this . portalContentRendered . set ( true ) ;
256252 } ) ;
Original file line number Diff line number Diff line change @@ -697,9 +697,7 @@ export class NgtRenderer2 implements Renderer2 {
697697 const cleanup = iS . setPointerEvent ?.( eventName as keyof NgtEventHandlers , callback ) || ( ( ) => { } ) ;
698698
699699 // this means the object has already been attached to the parent and has its store propagated
700- if ( iS . store ) {
701- iS . addInteraction ?.( iS . store ) ;
702- }
700+ if ( iS . store ) iS . addInteraction ?.( iS . store ) ;
703701
704702 return cleanup ;
705703 }
You can’t perform that action at this time.
0 commit comments