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: incorrectly renders when in a modal on top of horizontally scrollable content #4488

Closed
Kostia-K opened this issue Sep 22, 2023 · 2 comments · Fixed by #5758
Closed
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Kostia-K
Copy link

Describe the bug

When you have a Dropdown component inside a Dialog modal, it comes out on the left if the content behind the modal is horizontally scrollable. It also pushes the content behind the modal in the opposite direction. Try clicking the dropdown multiple times in the codesandbox - once it pushed the content all the way to the right, the dropdown starts working normally.

Screenshot from 2023-09-21 19-21-58

Reproducer

https://codesandbox.io/s/async-hooks-d4h8jk

PrimeVue version

3.34.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

Open a dialog modal with a dropdown on top of horizontally scrollable content and click the dropdown.

Expected behavior

The dropdown should not shift and the content behind the modal should not shift either. E.g.

Screenshot from 2023-09-21 19-27-52

@Kostia-K Kostia-K added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 22, 2023
@tugcekucukoglu tugcekucukoglu 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 16, 2023
@injae-kim
Copy link

Fix PR: #5758

@tugcekucukoglu tugcekucukoglu added this to the 3.53.0 milestone Jun 10, 2024
@HardWorkerFree
Copy link

HardWorkerFree commented Sep 20, 2024

Same bug with 4.0.0+ version
#5758 (comment)

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.

4 participants