Skip to content

Bugs with <uui-combobox> - scroll, placeholder text and icons #1006

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

Open
kraftvaerk-chth opened this issue Feb 6, 2025 · 0 comments
Open
Labels
bug Something isn't working needs triage This issue has not been tested by a team member yet

Comments

@kraftvaerk-chth
Copy link

Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.

1.11.0

Bug summary

I would like to report a couple of bugs related to the component

  1. Placeholder of the input field is not exposed, and can not be set when inserting the combobox component

  2. There is an appended that we would like to remove and replace with a icon-search icon. We are able to append the icon-search icon, but the does not go away when appending an icon

  3. When inserting the nested in another web component with a shadow DOM, the scroll event listener is placed correctly on all parent elements that have a scrollbar, so the popover position is not updated when scrollingThis works fine in storybook, because the entire document has a scroll bar, but uui-combobox's this.parentElement returns null due to it being inserted in a shadow DOM, so it never finds all the parent elements that have a scrollbar
    The component that has the relevant code for bug V0/feature/dropdown popper #3 is in

Specifics

No response

Steps to reproduce

Insert a nested inside another web component with its own shadow DOM.

  1. You will not be able to set a placeholder text for the input field
  2. You will not be able to remove the expand icon, even when adding another icon in the "input-append" slot

Make sure the parent component that the is inserted in has a scrollbar on the y-axis
Make sure there are inserted some options in the combobox
Open the popover/dropdown of the combobox
3. When scrolling, the popover/dropdown stays in place, because the scroll event is occuring on the parent element with the scroll bar, which does not have a scroll event listener attached by the

Expected result / actual result

No response

@kraftvaerk-chth kraftvaerk-chth added bug Something isn't working needs triage This issue has not been tested by a team member yet labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage This issue has not been tested by a team member yet
Projects
None yet
Development

No branches or pull requests

1 participant