Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
fix(DropdownV2): expect string or object for selectedItem prop (#1946)
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod authored and joshblack committed Mar 8, 2019
1 parent 1bca992 commit d9b17c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DropdownV2/DropdownV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class DropdownV2 extends React.Component {
/**
* In the case you want to control the dropdown selection entirely.
*/
selectedItem: PropTypes.object,
selectedItem: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),

/**
* `true` to use the light version.
Expand Down

0 comments on commit d9b17c7

Please sign in to comment.