Since it’s and old project (been updating since around beta 3). I tried installing a fresh project and copying my code in it, error still exists.
Will try to track the error down.
I am one step further: I created an ActionSheet
with buttons. This one triggers the modal:
buttons.push({
text: "Notificaties instellen",
handler: () => {
this.setNotifications("notifications");
}
});
This doesnt show the modal (it is being rendered though).
When i call setNotifications()
from this method:
showModal() {
this.setNotifications("notifications");
}
by this button
<button block outline danger (click)="showModal()">
test
</button>
the modal does render and show. So i guess there’s a NgZone-Actionsheet related error?
It is. Wrapping the ActionSheet
button call in this._ngZone.run(() => { })
does fix this behavior.