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

Dropdown | Mouse click when it is partially off the top of the screen causes the page to jump #11512

Closed
crnisc opened this issue May 12, 2022 · 0 comments · Fixed by #11513
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@crnisc
Copy link
Contributor

crnisc commented May 12, 2022

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior

The whole page jumps with you click a dropdown or one of its items when it is partially off the top of the screen.

Expected behavior

It should not do that.

Minimal reproduction of the problem with instructions

Minimal demo

Click the dropdown. The page will jump to place the dropdown approximately in the middle. Without closing the list, scroll down so that the dropdown is slightly off the top. Click one of the options. The page will jump again.

What is the motivation / use case for changing the behavior?

Users find the current behavior disorienting, especially when working in a table that contains many dropdowns.

Please tell us about your environment:

MacOS

  • Angular version: 11.X - 13.X

This is probably an issue with versions before 11, but I have not tested that far back.

  • PrimeNG version: 11.X - 13.X

This is probably an issue with versions before 11, but I have not tested that far back.

  • Browser: Chrome

  • Language: all

@cetincakiroglu cetincakiroglu self-assigned this May 23, 2022
@cetincakiroglu cetincakiroglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label May 23, 2022
@cetincakiroglu cetincakiroglu modified the milestones: 13.Future, 13.4.2 May 23, 2022
@cetincakiroglu cetincakiroglu changed the title Clicking a dropdown or its options when it is partially off the top of the screen causes the page to jump Dropdown | Mouse when it is partially off the top of the screen causes the page to jump May 25, 2022
@cetincakiroglu cetincakiroglu changed the title Dropdown | Mouse when it is partially off the top of the screen causes the page to jump Dropdown | Mouse click when it is partially off the top of the screen causes the page to jump May 25, 2022
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.

2 participants