-
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
fix: #12948 || Overlay: p-overlay div not removed from DOM on hiding … #13659
fix: #12948 || Overlay: p-overlay div not removed from DOM on hiding … #13659
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@mertsincan and @gucal hi, can you please check this PR. Thanks in advance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if this is related with a previous PR that I did. Please check if it's possible #13501
Thanks
@SoyDiego Thanks for your concern. I checked PR and Issues you mentions. those are not relevent to this PR. Actually here I am ensuring that default overlay z-index is negative so it shouldn't do any side effect to others. |
Thanks for double check 👌 |
Hi @ashikjs, We cannot set z-index manually in this case we've got a utility function called zIndexUtils in components/utils, could you please remove the manual CSS and use zIndexUtils? You can check the sidebar or dialog to see how we manage zIndex by using zIndexUtils. |
@cetincakiroglu ok let me try. |
ed00e3a
to
f8d6103
Compare
@cetincakiroglu can you check my PR now. I wrote details about my latest change in description box. |
c11764b
to
adf226e
Compare
5d30d6f
to
e823806
Compare
…on hiding panel.
e823806
to
68b627f
Compare
@gucal and @cetincakiroglu can you check my PR. |
Fix: #12948
Previously I did try to solve it by
z-index
for CSS animation but now I re-check hole process and identified that dome should remove when overlay is hide.There issue was after complete animation
this.modalVisible = false;
can not event fire angular change detection life cycle so dome was not removed properly so we fire it manually bythis.cd.markForCheck()
then dome gone and solve it issues.Extra code:
I removed
event
from(click)="onOverlayClick($event)"
becauseonOverlayClick
function don't have any parameter.