Skip to content

Commit

Permalink
Respect defaultProps.wrapper value
Browse files Browse the repository at this point in the history
  • Loading branch information
huumanoid committed Mar 20, 2017
1 parent 3c85424 commit 49fece0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ class ReactTooltip extends Component {

let Wrapper = this.props.wrapper
if (ReactTooltip.supportedWrappers.indexOf(Wrapper) < 0) {
Wrapper = 'div'
Wrapper = ReactTooltip.defaultProps.wrapper
}

if (html) {
Expand Down

0 comments on commit 49fece0

Please sign in to comment.