-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Component: ContextMenu with appendTo="body" doesn't close when destroyed #13948
Comments
@brio1009 This might be related: https://github.com/orgs/primefaces/discussions/161 I'm opening issue for ContextMenu issue now also. |
Hi @brio1009 I will work on this. |
@brio1009 In the below video you can see that this issue got resolved by the changes that I have pushed into the linked Pullrequest. |
Bug fix #13948 - ContextMenu with appendTo="body" doesn't close when destroyed
Thanks for the fast response + fix release :) |
Describe the bug
When using a context menu with appendTo="body", the opened context menu stays open even if the context menu component is destroyed/removed.
Environment
Windows + Chrome
Reproducer
https://stackblitz.com/edit/yfrjgh?file=src%2Fapp%2Fdemo%2Fcontext-menu-document-demo.html
Angular version
16.2.0
PrimeNG version
16.5.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.18.0
Browser(s)
No response
Steps to reproduce the behavior
Show menu appended to body
andShow menu not appended to body
. Now, two context menus should be open.Destroy context menu component
Appended to body
context menu stays openExpected behavior
The context menu with appendTo="body" should also be removed.
The text was updated successfully, but these errors were encountered: