Skip to content

Commit

Permalink
Merge pull request romainberger#21 from sompylasar/patch-2
Browse files Browse the repository at this point in the history
ToolTip: Missing `propTypes.parent` (the selector)
  • Loading branch information
romainberger authored Jul 19, 2016
2 parents 7740799 + 5fba049 commit c0d9e4f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,16 +444,17 @@ class Card extends React.Component {
var portalNodes = {}

export default class ToolTip extends React.Component {
static defaultProps = {
active: false,
group: 'main',
tooltipTimeout: 500
}
static propTypes = {
parent: PropTypes.string.isRequired,
active: PropTypes.bool,
group: PropTypes.string,
tooltipTimeout: PropTypes.number
}
static defaultProps = {
active: false,
group: 'main',
tooltipTimeout: 500
}
componentDidMount() {
if (!this.props.active) {
return
Expand Down

0 comments on commit c0d9e4f

Please sign in to comment.