Skip to content

Commit

Permalink
fix(GoalParentCombobox): add handler to menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisVorop committed May 3, 2024
1 parent 2f0fae8 commit af11c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/GoalParentComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const GoalParentComboBox = React.forwardRef<HTMLDivElement, GoalParentCom
key={props.item.title}
value={props.item}
renderItem={({ hovered, active, ...viewProps }) => (
<MenuItem {...viewProps} hovered={hovered || active}>
<MenuItem {...viewProps} onClick={props.onClick} hovered={hovered || active}>
{props.item.title}
</MenuItem>
)}
Expand Down

0 comments on commit af11c87

Please sign in to comment.