p-sidebar: can't open onInit #14605
Labels
Resolution: Stale
Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Describe the bug
When i use the p-sidebar-component und want to display it onInit, the sidebar seems to be called multiple times.
app.component.html:
I would like to load components inside the Sidebar onInit for a router-outlet. So for specific urls you can directly access the sidebar-content.
But with this bug this is not possible. You can close the Sidebar itself (this is only exist once) - but the mask is generated multiple times and you can just get rid of one, closing the sidebar.
I don't what to disable the mask. I know this would help, but i hope you can fix this or have another workaround :)
Thx for any help!
Environment
mac-os 13.6 (22G120)
Reproducer
No response
Angular version
17.0.5
PrimeNG version
17.3.3
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.0
Browser(s)
Google Chrome: Version 120.0.6099.216
Steps to reproduce the behavior
Just init the code below and you should see the Problem directly
Expected behavior
The sidebar and mask should only show once.
The text was updated successfully, but these errors were encountered: