Select: Fix last option in an option group to be selectable (#93457)

don't completely overwrite innerProps
This commit is contained in:
Ashley Harrison
2024-09-19 09:05:23 +01:00
committed by GitHub
parent 224e96effa
commit 73eff837e8

View File

@@ -141,6 +141,7 @@ export const VirtualizedSelectMenu = ({
// add a bottom divider to the last item in the category
React.cloneElement(child.props.children.at(-1), {
innerProps: {
...child.props.children.at(-1).props.innerProps,
style: {
borderBottom: `1px solid ${theme.colors.border.weak}`,
height: VIRTUAL_LIST_ITEM_HEIGHT,