PortalDialogService Signature Changes
In version 7, updates in the PrimeNG Dynamic Dialog API (introduced in PrimeNG 20) required changes to the PortalDialogService method signatures.
Summary of Changes
-
The return type of
openDialog<T>changed from:Observable<DialogState<T>>toObservable<DialogState<T> | null>
Update Your Application
-
Adjust your handling of
openDialog()results. Since the method may now returnObservable<null>, your code must handle the case where a dialog cannot be created.
|
If |