Skip to content

Commit

Permalink
fix(improvements): add use of className prop, react as devDependency
Browse files Browse the repository at this point in the history
- fixes #19 
- fixes #20
  • Loading branch information
jvgreenaway authored and mrchief committed Nov 5, 2017
1 parent c634c82 commit cfea3a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class DropdownTreeSelect extends Component {
]).isRequired,
placeholderText: PropTypes.string,
showDropdown: PropTypes.bool,
className: PropTypes.string,
onChange: PropTypes.func,
onAction: PropTypes.func,
onNodeToggle: PropTypes.func
Expand Down Expand Up @@ -111,7 +112,7 @@ class DropdownTreeSelect extends Component {

render () {
return (
<div className='react-dropdown-tree-select'>
<div className={cn(this.props.className, 'react-dropdown-tree-select')}>
<Dropdown ref={el => { this.dropdown = el }} onHide={this.onDrowdownHide}>
<DropdownTrigger className={cx('dropdown-trigger')}>
<Input
Expand Down

0 comments on commit cfea3a2

Please sign in to comment.