Skip to content

Commit a40b42c

Browse files
committed
fix(modal): canEnter is called in modals
1 parent 1300cbd commit a40b42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/navigation/nav-controller-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ export class NavControllerBase extends Ion implements NavController {
432432
// create ComponentRef and set it to the entering view
433433
enteringView.init(componentFactory.create(childInjector, []));
434434
enteringView._state = ViewState.INITIALIZED;
435+
this._willLoad(enteringView);
435436
}
436437

437438
_viewTest(enteringView: ViewController, leavingView: ViewController, ti: TransitionInstruction) {
@@ -549,7 +550,6 @@ export class NavControllerBase extends Ion implements NavController {
549550
_viewInsert(view: ViewController, componentRef: ComponentRef<any>, viewport: ViewContainerRef) {
550551
// successfully finished loading the entering view
551552
// fire off the "didLoad" lifecycle events
552-
this._willLoad(view);
553553
this._didLoad(view);
554554

555555
// render the component ref instance to the DOM

0 commit comments

Comments
 (0)