Skip to content

Commit cfea3a2

Browse files
jvgomgmrchief
authored andcommitted
fix(improvements): add use of className prop, react as devDependency
- fixes dowjones#19 - fixes dowjones#20
1 parent c634c82 commit cfea3a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class DropdownTreeSelect extends Component {
2525
]).isRequired,
2626
placeholderText: PropTypes.string,
2727
showDropdown: PropTypes.bool,
28+
className: PropTypes.string,
2829
onChange: PropTypes.func,
2930
onAction: PropTypes.func,
3031
onNodeToggle: PropTypes.func
@@ -111,7 +112,7 @@ class DropdownTreeSelect extends Component {
111112

112113
render () {
113114
return (
114-
<div className='react-dropdown-tree-select'>
115+
<div className={cn(this.props.className, 'react-dropdown-tree-select')}>
115116
<Dropdown ref={el => { this.dropdown = el }} onHide={this.onDrowdownHide}>
116117
<DropdownTrigger className={cx('dropdown-trigger')}>
117118
<Input

0 commit comments

Comments
 (0)