Completed
Last Updated: 22 Mar 2019 09:02 by ADMIN
Holger
Created on: 04 Mar 2019 13:22
Category: Dialog
Type: Bug Report
0
Dialog is messed up when calling DialogService from Observable and change detection is OnPush

Hi,

When opening a dialog with DialogService from an Observable (e.g. in order to initialize dialog with data from a http request) and ChangeDetectionStrategy.OnPush, the dialog is messed up. With ChangeDetectionStrategy.Default everything works fine.

For reproduction have a look to this StackBlitz: https://angular-9vmvyv.stackblitz.io

Regards,
Holger

1 comment
ADMIN
T. Tsonev
Posted on: 11 Mar 2019 10:45
Hi Holger,

Thank you for reporting this problem. We'll investigate and try to provide a timely fix.

In the meantime you can workaround the issue by calling ChangeDetectorRef.markForCheck() after opening the Dialog, see updated snippet.

Best Regards,
T. Tsonev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.