NativeScript / nativescript-angular

Integrating NativeScript with Angular
http://docs.nativescript.org/angular/tutorial/ng-chapter-0
Apache License 2.0
1.21k stars 240 forks source link

ngModel / formControl does not update when inside Modal -> TabView -> TabItem in iOS #1598

Open manojdcoder opened 5 years ago

manojdcoder commented 5 years ago

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

Describe the bug ngModel / formControl doesn't update the values when inside a Modal Dialog -> TabView -> TabItem in iOS. Looks like controls inside the last TabItem works as expected, but not others.

To Reproduce Place TextFields with ngModel inside a TabView that should be inside a Modal Dialog. Model never gets updated, it's same in case of formControls too.

Expected behavior In the sample project below, labels in Tab1 and Tab2 should update as user change the text in the text fields on the same tabs.

Sample project https://play.nativescript.org/?template=play-ng&id=ptOL8q&v=4

Additional context This doesn't look like an Angular only issue, as the text change event itself is failing.

manojdcoder commented 5 years ago

Update:

It must be Angular specific, same scenario works as expected with Core.

Sample project https://play.nativescript.org/?template=play-tsc&id=226zEk