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
OverlayPanel stays open if hide() method is invoked before animation is finished.
Use case:
I have several different elements and several corresponding overlay panels. Once I hover one of the elements, corresponding overlay panel should appear. Once I leave the element, the opened overlay panel should hide.
However, If I hover over the elements one by one pretty quickly, lots of panels stay open and never hide.
I did some investigation and found that it happens because of the isOverlayAnimationInProgress flag which prevents panels from closing.
Expected behavior:
Even if animation isn't finished, opened overlayPanel should be closed if hide() is invoked.
cetincakiroglu
added
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Nov 22, 2022
Describe the bug
OverlayPanel stays open if
hide()
method is invoked before animation is finished.Use case:
I have several different elements and several corresponding overlay panels. Once I hover one of the elements, corresponding overlay panel should appear. Once I leave the element, the opened overlay panel should hide.
However, If I hover over the elements one by one pretty quickly, lots of panels stay open and never hide.
I did some investigation and found that it happens because of the
isOverlayAnimationInProgress
flag which prevents panels from closing.Expected behavior:
Even if animation isn't finished, opened overlayPanel should be closed if
hide()
is invoked.Environment
Window 10
Google Chrome 107.0.5304.107
Angular 14.0.4
PrimeNG 14.0.2
Reproducer
https://stackblitz.com/edit/github-1euknb?file=src/app/app.component.html
Angular version
14.0.4
PrimeNG version
14.2.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.14.2
Browser(s)
Google Chrome 107.0.5304.107
Steps to reproduce the behavior
Pre-conditions:
.hide()
is used).Steps to reproduce:
See a demo I prepared: https://stackblitz.com/edit/github-1euknb?file=src/app/app.component.html
Expected behavior
Overlay panels should be closed if
hide()
method is invoked.The text was updated successfully, but these errors were encountered: