Skip to content

Commit 808898d

Browse files
pkozlowski-opensourcealxhub
authored andcommitted
fix(ivy): properly project individual nodes (angular#28152)
PR Close angular#28152
1 parent f59f18c commit 808898d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/core/src/render3/instructions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2398,8 +2398,8 @@ export function projectionDef(selectors?: CssSelectorList[], textSelectors?: str
23982398
tails[bucketIndex] !.next = componentChild;
23992399
} else {
24002400
pData[bucketIndex] = componentChild;
2401-
componentChild.next = null;
24022401
}
2402+
componentChild.next = null;
24032403
tails[bucketIndex] = componentChild;
24042404

24052405
componentChild = nextNode;

packages/core/test/linker/projection_integration_spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('projection', () => {
9595
expect(main.nativeElement).toHaveText('I AM PROJECTED');
9696
});
9797

98-
fixmeIvy('unknown').it('should support multiple content tags', () => {
98+
it('should support multiple content tags', () => {
9999
TestBed.configureTestingModule({declarations: [MultipleContentTagsComponent]});
100100
TestBed.overrideComponent(MainComp, {
101101
set: {
@@ -195,7 +195,7 @@ describe('projection', () => {
195195
expect(main.nativeElement).toHaveText('OUTER(INNER(INNERINNER(A,BC)))');
196196
});
197197

198-
fixmeIvy('unknown').it('should redistribute when the shadow dom changes', () => {
198+
it('should redistribute when the shadow dom changes', () => {
199199
TestBed.configureTestingModule(
200200
{declarations: [ConditionalContentComponent, ManualViewportDirective]});
201201
TestBed.overrideComponent(MainComp, {
@@ -302,7 +302,7 @@ describe('projection', () => {
302302
expect(main.nativeElement).toHaveText('SIMPLE()START(A)END');
303303
});
304304

305-
fixmeIvy('unknown').it('should support moving ng-content around', () => {
305+
it('should support moving ng-content around', () => {
306306
TestBed.configureTestingModule(
307307
{declarations: [ConditionalContentComponent, ProjectDirective, ManualViewportDirective]});
308308
TestBed.overrideComponent(MainComp, {

0 commit comments

Comments
 (0)