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 Position Issue in Autocomplete Component #3871

Closed
ivan006 opened this issue Aug 3, 2023 · 3 comments
Closed

Dropdown Position Issue in Autocomplete Component #3871

ivan006 opened this issue Aug 3, 2023 · 3 comments
Assignees
Labels

Comments

@ivan006
Copy link

ivan006 commented Aug 3, 2023

Overview of the problem

Buefy version: "buefy": "^0.9.19",
Vuejs version: "vue": "^2.6.11",
OS/Browser: [win10/crhome]

windows 10

Description

I've encountered an issue with the positioning of the dropdown in the autocomplete component. Specifically, the dropdown has unexpected values for its CSS properties such as position, top, left, and width, leading to a misalignment in certain situations.

Steps to reproduce

  1. Create an autocomplete component
  2. Open the dropdown.
  3. Observe the incorrect positioning.

Sorry to b so vauge perhaps I should try isolate the code so i can describe better how to reproduce it.
In the mean time this fact might help

  • the autocomplete is in a modal

Expected behavior

The dropdown should be properly aligned with the input field, following the provided dropdownDirection property.

Actual behavior

The dropdown appears with the following incorrect CSS position values:

position: absolute;
top: 960.075px;
left: 443.4px;
width: 884px;
max-width: 884px;
z-index: 99;

These values lead to a misalignment of the dropdown relative to the input field.

@ivan006
Copy link
Author

ivan006 commented Aug 4, 2023

Somehow it had to do with having thse to props set

 dropdown-position="bottom"
 :append-to-body="true"

@wesdevpro wesdevpro self-assigned this Aug 17, 2023
@wesdevpro wesdevpro added the bug label Aug 17, 2023
@kikuomax kikuomax self-assigned this Dec 5, 2023
@kikuomax
Copy link
Collaborator

kikuomax commented Dec 5, 2023

@ivan006 If this is related to the following issue (PR), it will be fixed in the next release:

@wesdevpro
Copy link
Member

@ivan006 If this is related to the following issue (PR), it will be fixed in the next release:

Closing because this issue should have been fixed. @ivan006 If you can reproduce this issue with the latest version of Buefy (Vue2) please reopen this issue with the steps to reproduce this problem. Thank You!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Completed ✅
Development

No branches or pull requests

3 participants