-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V12 - sidebar doesn't remove mask #10682
Comments
This is still not fixed. Since mask element is after the sidebar when we set Its still not working. Easy fix could be add event listener with useCaptue as true @jiangyh1024 Please reopen this bug |
Still exists in 12.2.0 |
I have looked into this a little. It appears that the
A possible solution is to simply move the |
On second thought, I think |
seems fixed, when to release a new version |
I am still seeing this issue in our project after updating to |
try what I did in #10715, I think it could fix this issue as a makeshift. |
Thanks for the suggestion, @jiangyh1024. I have added a I do not think that this issue should be closed. |
I have been unable to reproduce the problem using the Sidebar Stackblitz example, but this issue still occurs in our PWA under PrimeNG 12.2.1 & Angular 12.2.10. However, I found I could work-around the problem by manually calling <p-sidebar
#NavSideBar
(onHide)="NavSideBar.destroyModal()"
[(visible)]="navigationPaneIsOpen"
[blockScroll]="true"
[showCloseIcon]="false"
styleClass="p-0"
appendTo="body">
...
</p-sidebar> |
Thx, that would be helpful |
I can still reproduce the issue in the version 12.2.1. The problem is that the p-component-overlay div is not removed when the sidebar is closed. To reproduce the issue you cannot use a theme because in the theme there are some css transitions to remove the panel. So, my workaround is add the next lines (copied to one theme) to my style.scss file
Anyway I attach a minimal angular project to reproduce the issue |
Thanks, @smarrerof. Those CSS animations fix the problem and eliminate the need for the work-around I previously posted in our project, which doesn't use a standard PrimeNG theme and was missing those |
Thanks @smarrerof. I can confirm that the problem persists, but this workaround works. |
Many thanks , @smarrerof , your workaround is effective and smart. Issue should be reopened , and maybe fixed with it :) |
Why is this closed if it is still broken? I have the problem with 12.2.2 |
Still present in latest 12.x version. Please fix. |
Also still present for me with 12.2.2 |
Confirm, bug is still present in 12.2.2 |
Still present in 13 RC2 |
Is this still present in 13.0.2? |
I can confirm it still present in 13.0.2 |
issue exists in v13 as well but why this is closed here. |
Issue still exists. Using 13.0.3. But thanks to @KeithGillette work around, else I was dead. |
Issue still exists, I think that is a problem when I am paying for this project and you people don't event give an answer. |
happens for me in v13 as well. the issue should not be closed |
For the people having this issue in V13, check the comment I put on my bug ticket: #11587 (comment) Make sure to check your theme css file |
@QuickScoP3s the css solution that you gave only changes the background color and does not remove the overlay DOM? |
For me it does remove the DOM: They use an animation listener on the "p-component-overlay-leave-animation" Check this the "disableModality()" function: primeng/src/app/components/sidebar/sidebar.ts Line 219 in 5bcc0fb
|
Yes. This solves the issue! Thanks! |
@QuickScoP3s. To be fair and give back to Cesar ... , this comment of yours is just a character for character quote of @smarrerof fix , which you can find at the beginning of this thread ;) |
Oh woops, totally overlooked that comment. Well, all credits to @smarrerof :P |
I found this <p-sidebar ... [modal]="false">
</p-sidebar> |
doesn't trigger destroyModal()
The text was updated successfully, but these errors were encountered: