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
47
47
vite.config. * .timestamp *
48
48
vitest.config. * .timestamp *
49
49
.aider *
50
+ CLAUDE.md
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ export class NgtPortalContent {
91
91
constructor ( ) {
92
92
const host = inject < ElementRef < HTMLElement > > ( ElementRef , { skipSelf : true } ) ;
93
93
const { element } = inject ( ViewContainerRef ) ;
94
- const injector = inject ( Injector ) ;
95
94
const commentNode = element . nativeElement ;
96
95
const store = injectStore ( ) ;
97
96
@@ -246,11 +245,8 @@ export class NgtPortalImpl {
246
245
return ;
247
246
}
248
247
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 ) ;
254
250
this . portalViewRef . detectChanges ( ) ;
255
251
this . portalContentRendered . set ( true ) ;
256
252
} ) ;
Original file line number Diff line number Diff line change @@ -697,9 +697,7 @@ export class NgtRenderer2 implements Renderer2 {
697
697
const cleanup = iS . setPointerEvent ?.( eventName as keyof NgtEventHandlers , callback ) || ( ( ) => { } ) ;
698
698
699
699
// 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 ) ;
703
701
704
702
return cleanup ;
705
703
}
You can’t perform that action at this time.
0 commit comments