octicon-rss(16/)
You've already forked ionic-framework
mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 22:44:13 +08:00
fix(angular): disable change detection detach
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
committed by
Manu MA
gitea-unlock(16/)
parent
945dd2610b
commit
68e26192a5
octicon-diff(16/tw-mr-1) 12 changed files with 71 additions and 24 deletions
@@ -106,7 +106,8 @@ export class StackController {
|
||||
const element = view.element;
|
||||
element.setAttribute('aria-hidden', 'true');
|
||||
element.classList.add('ion-page-hidden');
|
||||
view.ref.changeDetectorRef.detach();
|
||||
// TODO
|
||||
// view.ref.changeDetectorRef.detach();
|
||||
}
|
||||
this.viewsSnapshot = views.slice();
|
||||
}
|
||||
@@ -132,10 +133,11 @@ export class StackController {
|
||||
this.skipTransition = false;
|
||||
return;
|
||||
}
|
||||
if (enteringView) {
|
||||
enteringView.ref.changeDetectorRef.reattach();
|
||||
enteringView.ref.changeDetectorRef.markForCheck();
|
||||
}
|
||||
// TODO
|
||||
// if (enteringView) {
|
||||
// enteringView.ref.changeDetectorRef.reattach();
|
||||
// enteringView.ref.changeDetectorRef.markForCheck();
|
||||
// }
|
||||
const enteringEl = enteringView ? enteringView.element : undefined;
|
||||
const leavingEl = leavingView ? leavingView.element : undefined;
|
||||
const containerEl = this.containerEl;
|
||||
|
||||
Reference in New Issue
Block a user