Description
Which generators are impacted?
- All
- HTML
- React
- Angular
- Vue
- Web components
- Power Apps
Reproduction case
I'm using DBCustomSelect with selectedType=tag
.
When I supply an array of custom texts to the removeTagsTexts
option of the DBCustom select, after selection an option the text on the remove icon of my tag does not correspond to the selected item.
In packages/components/src/components/custom-select/custom-select.lite.tsx
the function getTagRemoveLabel() is called in line 830 with the index of the item in the array of selectedOptions
but should be called with the index of the item in the array of props.options
instead.
Developers still need to make sure that the items in the arrays of options and removeTagsTexts are in the same order but that's okay.
Expected Behaviour
The (aria) text on the remove icon of a selected tag in a DBCustomSelect corresponds to the selected option.
Screenshots
No response
Browser version
None
Add any other context about the problem here.
No response
Metadata
Metadata
Assignees
Type
Projects
Status