fix(angular): attach change detector ref for inline overlays (#24521)

Allow template bindings to update with inline overlays.

Resolves #24502
This commit is contained in:
Sean Perkins
2022-01-06 15:43:51 -05:00
committed by GitHub
parent bd82b5dc1d
commit 5c54593dde
15 changed files with 161 additions and 2 deletions

View File

@ -103,7 +103,6 @@ export class IonModal {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
this.el.addEventListener('willPresent', () => {

View File

@ -104,7 +104,6 @@ export class IonPopover {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
this.el.addEventListener('willPresent', () => {