Environment
-
CLI:
├── [email protected]
-
Cross-platform modules:
@nativescript/[email protected]
-
Android Runtime:
├── @nativescript/[email protected]
-
iOS Runtime:
├── @nativescript/[email protected]
(JSC) -
Plugin(s):
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @angular/[email protected]
├── @nativescript/[email protected]
├── @nativescript/[email protected]
├── @nativescript/[email protected]
├── @nativescript/[email protected]
├── @nativescript/[email protected]
├── @ngtools/[email protected]
├── [email protected]
├── [email protected]
└── [email protected]
Describe the bug
Since uprading to Angular 12 the following issues occur:
-
ScrollView within a modal is no longer working
-
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
- Clone this repository
- Run the project
ns run android
(orns run ios
) - Tap any list item to open first modal -> scroll does not work (1st issue)
- Tap on "Open 2nd modal" -> check console output for error (2nd issue)
Expected behavior
- Scrolling works
- 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!