You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when overlay panel is dismissable and we add a checkbox inside the panel, click on the checkbox then uncheck it, the panel will be hidden.
the problem comes from the fact that the document event listener of the overlaypanel is fired after the svg element of the checkbox was removed from the dom so, this.container?.contains(event.target) is returning false
Environment
windows
chrome, Microsoft edge
angular 16
primeng 16
Describe the bug
when overlay panel is dismissable and we add a checkbox inside the panel, click on the checkbox then uncheck it, the panel will be hidden.
the problem comes from the fact that the document event listener of the overlaypanel is fired after the svg element of the checkbox was removed from the dom so, this.container?.contains(event.target) is returning false
Environment
windows
chrome, Microsoft edge
angular 16
primeng 16
Reproducer
No response
Angular version
16
PrimeNG version
16
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
17
Browser(s)
No response
Steps to reproduce the behavior
add this code to the html component:
1-open the panel by clicking on the button show
2-click on the checkbox
3-second click on the checkbox
Expected behavior
the panel should not be hidden
The text was updated successfully, but these errors were encountered: