Skip to content

Commit 3b82e18

Browse files
committed
chore: fixes
1 parent fac3428 commit 3b82e18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: nativescript-angular/forms/value-accessors/text-value-accessor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export type TextView = {text: string} & View;
3838
"search-bar[ngModel], search-bar[formControlName],search-bar[formControl]",
3939
providers: [TEXT_VALUE_ACCESSOR],
4040
host: {
41-
"(blur)": "onTouched()",
41+
// "(blur)": "onTouched()", // Causes ExpressionChangedAfterItHasBeenCheckedError when using [formControlName] bindings in dynamic forms
4242
"(textChange)": "onChange($event.value)",
4343
},
4444
})

Diff for: nativescript-angular/router/ns-location-strategy.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export class NSLocationStrategy extends LocationStrategy {
212212
}
213213
this.callPopState(state, true);
214214
} else {
215-
let state = this.currentOutlet.peekState();
215+
let state = this.currentOutlet && this.currentOutlet.peekState();
216216
if (state && state.isPageNavigation) {
217217
// This was a page navigation - so navigate through frame.
218218
if (isLogEnabled()) {
@@ -353,7 +353,7 @@ export class NSLocationStrategy extends LocationStrategy {
353353
}
354354

355355
this.currentOutlet = this.getOutletByFrame(frame);
356-
const lastState = this.currentOutlet.peekState();
356+
const lastState = this.currentOutlet && this.currentOutlet.peekState();
357357

358358
if (lastState) {
359359
lastState.isPageNavigation = true;

0 commit comments

Comments
 (0)