Troubleshooting
Overlay does not close on outside click
- Confirm
PrimeNGShadowDOMDirectiveis imported on the host / module. - Add the explicit
psd*attribute for that component. - Make sure you are not stopping propagation in a way that empties
composedPath().
Components look unstyled inside ShadowDom
- PrimeNG 22: confirm PrimeNG theme is configured; styles should adopt automatically. If not, check PrimeNG theme setup first, not PSD.
- PrimeNG 18-21: use
attachPrimeNgStylesToShadowRootfrom the matching older PSD major (Styles).
Wrong PSD major
Peer warnings or missing exports usually mean Angular / PrimeNG / PSD majors are mismatched. Install the same major for all three (Installation).
MegaMenu / Menubar burger does nothing on small screens
On narrow viewports PrimeNG collapses these to a hamburger. Without psdMegaMenu / psdMenubar, the same document click that opens the menu also closes it, because event.target is retargeted to the Shadow DOM host. Add the matching attribute.
If the open panel looks only as wide as the burger button, give the host display: block; width: 100% (PrimeNG sizes the absolute list as width: 100% of that host).
SlideMenu / OverlayPanel missing
SlideMenuwas removed upstream in PrimeNG 18, so it is not part of PSD v18+.OverlayPanelwas renamed toPopoverin PrimeNG 20. UsepsdPopover.