Skip to content

Commit

Permalink
Merge branch 'master' into new-add-device-pictogram
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Jun 24, 2020
2 parents f6b8b08 + 133219f commit 995c1a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2033,6 +2033,9 @@ Map {
"disabled": Object {
"type": "bool",
},
"downshiftProps": Object {
"type": "object",
},
"helperText": Object {
"args": Array [
Array [
Expand Down
7 changes: 7 additions & 0 deletions packages/react/src/components/Dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ function Dropdown({
invalidText,
initialSelectedItem,
selectedItem: controlledSelectedItem,
downshiftProps,
}) {
const selectProps = {
...downshiftProps,
items,
itemToString,
initialSelectedItem,
Expand Down Expand Up @@ -285,6 +287,11 @@ Dropdown.propTypes = {
* Specify the direction of the dropdown. Can be either top or bottom.
*/
direction: PropTypes.oneOf(['top', 'bottom']),

/**
* Additional props passed to Downshift
*/
downshiftProps: PropTypes.object,
};

Dropdown.defaultProps = {
Expand Down

0 comments on commit 995c1a9

Please sign in to comment.