Toast | Position Class is there twice when using Angular SSR and Client Hydration #13784
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using SSR with Client Hydration the position class is in there twice since SSR already added the class to the dom when building the routes. Then the client code injects into it and is no longer knowing that the first class is provided by the toast component and just adds the current position to the classes again. That results in:
To fix that all normal classes should be provided in the normal class tag, also I added Change Detection to position to be sure that everything will be updated.
Environment
Reproducer
No response
Angular version
16.2.3
PrimeNG version
16.4.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.5.1
Browser(s)
Chrome, Safari
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: