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

Elastic UI ComboBox dropdown positioning #7876

Closed
DarioBuljovcic opened this issue Jul 8, 2024 · 5 comments
Closed

Elastic UI ComboBox dropdown positioning #7876

DarioBuljovcic opened this issue Jul 8, 2024 · 5 comments
Labels
bug ⚠️ needs validation For bugs that need confirmation as to whether they're reproducible

Comments

@DarioBuljovcic
Copy link

DarioBuljovcic commented Jul 8, 2024

Drop down from the combo box when its on the bottom of the page shrinks upwards instead of downwards

Environment and versions

  • EUI version: 95.3.0
  • React version: 18.3.1
  • Browser: chrome

Here is the combo box

<EuiComboBox
            aria-label="Accessible screen reader label"
            placeholder="Izaberite razrede"
            isInvalid={errorList.classList}
            options={classList}
            selectedOptions={selectedClasses}
            onChange={onChange}
            data-test-subj="demoComboBox"
            isClearable={true}
            
          />

Here is a picture of how it looks.
Untitled

Top style of the selected div doesnt change

Screenshot from 2024-07-08 09-16-29

@DarioBuljovcic DarioBuljovcic added bug ⚠️ needs validation For bugs that need confirmation as to whether they're reproducible labels Jul 8, 2024
@tkajtoch
Copy link
Member

tkajtoch commented Jul 8, 2024

Hi @DarioBuljovcic! Thanks for reporting this behavior. Could you share a reproducible example in CodeSandbox? I'm not sure if I understand your whole setup. Thanks!

@DarioBuljovcic
Copy link
Author

DarioBuljovcic commented Jul 11, 2024

Hi, I'm sorry but I don't think i can reproduce it. When i put my code into the sandbox it works how it should. I will try to test out more to see if i find what is the problem.

It's top value doesn't change when the number of items changes. So for example i have 10 items and i search so that only two items remain, the items box top value doesn't push it down but only it's height changes and it just stays floating up

It's like it doesn't know that it's on top of the combobox and not on the bottom

@DarioBuljovcic
Copy link
Author

Here is another example of how it looks.
It works in sandbox but in my app it doesn't.

Screenshot from 2024-07-15 08-43-22

I copied the code from https://eui.elastic.co/#/forms/combo-box example number 4.

@JasonStoltz
Copy link
Member

Hey @DarioBuljovcic. My assumption if it can't be reproduced in a Codesandbox is that it is something your project setup. I don't have any ideas of what the problem is. Unfortunately, without something reproducible, we won't be able to help you debug it.

@tkajtoch
Copy link
Member

I'm closing this as it's related to @DarioBuljovcic setup and isn't an actual EUI bug. Please feel free to open a new issue if you believe this is incorrect, providing reproduction steps and a CodeSandbox example.

@cee-chen cee-chen closed this as not planned Won't fix, can't repro, duplicate, stale Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ⚠️ needs validation For bugs that need confirmation as to whether they're reproducible
Projects
None yet
Development

No branches or pull requests

4 participants