nativescript-community / ui-material-components

Monorepo that contains all of the NativeScript Material Design plugins.
https://nativescript-community.github.io/ui-material-components/
Apache License 2.0
219 stars 80 forks source link

ui-material-bottomsheet doesn't work after a promise or observable #297

Closed Bezlepkin closed 3 years ago

Bezlepkin commented 3 years ago

Hi! I try to open the ui-material-bottomsheet after calling Http (observable).

The component opens but with errors. The ngOnInit method does not work, only the constructor. If you call immediately, without a promise and observable, then everything works correctly

NativeScript: 8.0.1 Android: 9 ui-material-bottomsheet: 5.2.13

farfromrefug commented 3 years ago

@Bezlepkin you are gonna have to give more info that this. You say errors but you dont even put the errors here. Feels like an angular zone thing issue. But dont know anything about angular.

Bezlepkin commented 3 years ago

figured it out. This only works if the promise is via then. If via async await it doesn't work.