You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the toast object is created, updating the title and body values of the object should update the toast component.
It works well in default mode and title is working in all cases.
However, when the bodyOutType is TrustedHtml, the body in the component is not getting updated.
It is due to the fact that the trusted html for the body is only calculated in the component initialization phase and not reacting to the changes.
The solution to this is to use sanitizeHtml pipe and apply it to the toast.body in the component template.
When the toast object is created, updating the title and body values of the object should update the toast component.
It works well in default mode and title is working in all cases.
However, when the bodyOutType is TrustedHtml, the body in the component is not getting updated.
It is due to the fact that the trusted html for the body is only calculated in the component initialization phase and not reacting to the changes.
The solution to this is to use sanitizeHtml pipe and apply it to the toast.body in the component template.
I create this PR to fix this issue:
#185
That would be great if it can be reviewed and merged if it is all fine.
The text was updated successfully, but these errors were encountered: