From 73eff837e8fd87e9b0aedc28cf8bd40c32c9fddd Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Thu, 19 Sep 2024 09:05:23 +0100 Subject: [PATCH] Select: Fix last option in an option group to be selectable (#93457) don't completely overwrite innerProps --- packages/grafana-ui/src/components/Select/SelectMenu.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/grafana-ui/src/components/Select/SelectMenu.tsx b/packages/grafana-ui/src/components/Select/SelectMenu.tsx index 95fdd41ecf6f..7a0e854126fa 100644 --- a/packages/grafana-ui/src/components/Select/SelectMenu.tsx +++ b/packages/grafana-ui/src/components/Select/SelectMenu.tsx @@ -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,