Skip to content

Commit

Permalink
Select: Fix last option in an option group to be selectable (grafana#…
Browse files Browse the repository at this point in the history
…93457)

don't completely overwrite innerProps
  • Loading branch information
ashharrison90 authored Sep 19, 2024
1 parent 224e96e commit 73eff83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/grafana-ui/src/components/Select/SelectMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 73eff83

Please sign in to comment.