Skip to content

Commit 86cf2cc

Browse files
Merge branch 'master' into feat/header-collapsing
2 parents e788beb + 32c1cc4 commit 86cf2cc

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frontend",
3-
"version": "0.16.24",
3+
"version": "0.16.26",
44
"author": "IDEMS International",
55
"license": "See LICENSE",
66
"homepage": "https://idems.international/",

src/app/shared/components/template/template-container.component.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
ChangeDetectorRef,
23
Component,
34
ElementRef,
45
EventEmitter,
@@ -60,10 +61,14 @@ export class TemplateContainerComponent implements OnInit, OnDestroy, ITemplateC
6061
private componentDestroyed$ = new Subject<boolean>();
6162
debugMode: boolean;
6263

64+
private get cdr() {
65+
return this.injector.get(ChangeDetectorRef);
66+
}
67+
6368
constructor(
6469
private templateService: TemplateService,
6570
private templateNavService: TemplateNavService,
66-
injector: Injector,
71+
private injector: Injector,
6772
// Containers created in headless context may not have specific injectors
6873
public elRef?: ElementRef,
6974
private route?: ActivatedRoute
@@ -191,6 +196,8 @@ export class TemplateContainerComponent implements OnInit, OnDestroy, ITemplateC
191196
this.parent.children[this.name] = this;
192197
}
193198
log_groupEnd();
199+
// Ensure any parents using onPush are notified of changes (e.g. data-items)
200+
this.cdr.markForCheck();
194201
}
195202

196203
/**

tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"declaration": false,
88
"module": "es2020",
99
"moduleResolution": "node",
10-
"emitDecoratorMetadata": false,
1110
"experimentalDecorators": true,
1211
"importHelpers": true,
1312
"esModuleInterop": true,

0 commit comments

Comments
 (0)