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: Overlay panel hover causes browser horiz scrollbar to scroll #5613

Open
craiggeil opened this issue Apr 18, 2024 · 0 comments
Open
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@craiggeil
Copy link

Describe the bug

Put a dropdown component in a div that causes the browser's horizontal scrollbar to show up. Make sure the dropdown is not on the left edge of the browser. Click the dropdown, now move the mouse to hover over the overlay panel showing the options. The horiz scrollbar scrolls to the right so that the left edge of the panel is flush with the left side of the screen.

Reproducer

https://stackblitz.com/edit/crrcbb?file=src%2FApp.vue

PrimeVue version

3.50.0

Vue version

3.x

Language

ES6

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Create div 2000 px wide
  2. Add dropdown component inside it, give it a width of 200px and margin-left of 200px
  3. Click dropdown to show options
  4. Hover over options
  5. Horizontal scrollbar in browser auto scrolls to the right so that the options panel is aligned on the left edge of the screen

Expected behavior

For the horizontal scroll bar to not move

@craiggeil craiggeil added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant