Skip to content

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

Open
@manojdcoder

Description

@manojdcoder

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):

  • CLI: 5.0.0
  • Cross-platform modules: 5.0.1
  • Android Runtime: N/A
  • iOS Runtime: 5.0.1
  • Plugin(s): N/A
  • NativeScript-Angular: 6.2.0
  • Angular: 6.1.10

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions