Skip to content

Commit

Permalink
fix(Dropdown): update renderSelectedItem type
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Feb 16, 2024
1 parent 97c672a commit a08fc3f
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 a08fc3f

Please sign in to comment.