Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Latest commit

 

History

History
73 lines (44 loc) · 2.04 KB

README.md

File metadata and controls

73 lines (44 loc) · 2.04 KB

Issues with NativeScript 8 and Angular 12 concerning modals

Environment

Describe the bug

Since uprading to Angular 12 the following issues occur:

  1. ScrollView within a modal is no longer working

  2. Opening a second modal from a first modal throws the following error:

    ERROR TypeError: options.parentView.showModal is not a function

Related GitHub issue: NativeScript/angular#17

To Reproduce

  1. Clone this repository
  2. Run the project ns run android (or ns run ios)
  3. Tap any list item to open first modal -> scroll does not work (1st issue)
  4. Tap on "Open 2nd modal" -> check console output for error (2nd issue)

Expected behavior

  1. Scrolling works
  2. No error, 2nd modal opens

Additional context Both scenarios worked totally fine before upgrading to Angular 12. To demonstrate it, I created a branch downgrade-to-angular-11. Check out the branch, run ns clean and run the project again -> everything is working as expected.

I could not find any changes regading modal handling, did I miss anything? Any hint in the right direction would be welcomed.

Thanks!