You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are implementing a Combobox with infinite scroll where we fetch the first 100 items then fetch the next ones when reaching the bottom of the DropdownList. After fetching the next 100 items we regenerate the ListItems which triggers a DropdownList.updateList(). The problem is that this function triggers a doEmitSelect() (see this line) which triggers a dropdown close. This breaks the user flow since the user has to re-open the dropdown to keep scrolling.
Is this a feature request (new component, new icon), a bug, or a general issue?
Not sure: this could be a bug or done on purpose
Is this issue related to a specific component?
DropdownList + Combobox
What did you expect to happen? What happened instead? What would you like to see changed?
I would expect the dropdown to not close when we update the list items.
If done on purpose, could we add an emitSelectedValuesOnListUpdate input to the DropdownList component so we can disable this behavior in order to implement infinite scroll?
What browser are you working in?
Chrome, Edge
What version of the Carbon Design System are you using?
5.56.3
The text was updated successfully, but these errors were encountered:
philippe-bujeau
changed the title
DropdownList used in combination with Combobox closes when adding elements to the list
DropdownList used in combination with Combobox closes when adding elements to the list (infinite scroll impossible)
Jan 15, 2025
Detailed description
We are implementing a
Combobox
with infinite scroll where we fetch the first 100 items then fetch the next ones when reaching the bottom of theDropdownList
. After fetching the next 100 items we regenerate theListItem
s which triggers aDropdownList.updateList()
. The problem is that this function triggers adoEmitSelect()
(see this line) which triggers a dropdown close. This breaks the user flow since the user has to re-open the dropdown to keep scrolling.Not sure: this could be a bug or done on purpose
DropdownList
+Combobox
I would expect the dropdown to not close when we update the list items.
If done on purpose, could we add an
emitSelectedValuesOnListUpdate
input to theDropdownList
component so we can disable this behavior in order to implement infinite scroll?Chrome, Edge
5.56.3
The text was updated successfully, but these errors were encountered: