Skip to content
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

p-overlayPanel does not hide automatically after scrolling #13462

Closed
idzeravianka opened this issue Aug 8, 2023 · 1 comment · Fixed by #13480
Closed

p-overlayPanel does not hide automatically after scrolling #13462

idzeravianka opened this issue Aug 8, 2023 · 1 comment · Fixed by #13480
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@idzeravianka
Copy link

Describe the bug

The overlay panel does not automatically hide when it uses scrolling, when the content does not fit in the container specified by the height, and the user scrolls the scrollbar with a mouse click instead of a wheel.

Environment

Windows/MacOS

Reproducer

https://stackblitz.com/edit/ppug2d?file=src%2Fapp%2Fdemo%2Foverlay-panel-template-demo.html

Angular version

16.0.0

PrimeNG version

16.1.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

any

Browser(s)

Chrome v114.0.5735.198

Steps to reproduce the behavior

  1. Open the provided StackBlitz.
  2. Click 'Show' button to open overlay panel.
  3. Using the left mouse button (do not use the mouse wheel) scroll the content to the middle.
  4. Сlick the left mouse button anywhere in the document outside the overlay panel container (you will see that the panel is not closed).
  5. Click again outside the overlay panel and the panel will close.

Expected behavior

Panel closes after first click outside the panel

@idzeravianka idzeravianka added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 8, 2023
@SoyDiego
Copy link
Contributor

Hi @idzeravianka, I have checked the problem and you are right.
I did a PR with a possible solution, you can check here: #13480
If you can check or If you find something, let me know.
Now we should wait the PrimeNG Team approve it if it's ok for them.

@mertsincan mertsincan 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 Aug 29, 2023
@mertsincan mertsincan added this to the 16.2.1 milestone Aug 29, 2023
mertsincan added a commit that referenced this issue Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants