Skip to content

Commit

Permalink
Merge pull request #92 from sflpro/feature-select-list-item-wrapper
Browse files Browse the repository at this point in the history
fix: add ability to set list item wrapper class from select
  • Loading branch information
aannnaa7 authored Aug 20, 2020
2 parents 2d090ec + b7b49ec commit 507749d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Select/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class Select extends React.Component {
listProps: {
maxHeight = 350,
className = '',
itemWrapperClassName = '',
...listProps
},
} = this.props;
Expand Down Expand Up @@ -142,6 +143,7 @@ export class Select extends React.Component {
iconClassName={iconClassNames}
className={itemClassNames}
contentClassName={option.contentClassName}
wrapperClassName={itemWrapperClassName}
value={option.value}
iconSize={iconSize}
key={option.value}
Expand Down Expand Up @@ -482,6 +484,7 @@ Select.propTypes = {
maxHeight: PropTypes.number,
className: PropTypes.string,
contentClassName: PropTypes.string,
itemWrapperClassName: PropTypes.string,
}),
};

Expand All @@ -506,5 +509,6 @@ Select.defaultProps = {
maxHeight: 350,
className: '',
contentClassName: '',
itemWrapperClassName: '',
},
};

0 comments on commit 507749d

Please sign in to comment.