Skip to content

Commit

Permalink
fix(Dropdown): update renderSelectedItem type (#15771)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Feb 19, 2024
1 parent f12e27b commit 6d9fb4b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react/src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ export interface DropdownProps<ItemType>
* An optional callback to render the currently selected item as a react element instead of only
* as a string.
*/
renderSelectedItem?(
item: ItemType
): React.JSXElementConstructor<ItemType> | null;
renderSelectedItem?(item: ItemType): ReactNode;

/**
* In the case you want to control the dropdown selection entirely.
Expand Down

0 comments on commit 6d9fb4b

Please sign in to comment.