Skip to content

Commit

Permalink
fix(index.js): fix state initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
MtBlue81 committed Sep 12, 2018
1 parent be89b82 commit 69dea07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Expand Up @@ -74,7 +74,8 @@ class ReactTooltip extends React.Component {
constructor (props) {
super(props)
this.state = {
place: 'top', // Direction of tooltip
place: props.place || 'top', // Direction of tooltip
desiredPlace: props.place || 'top',
type: 'dark', // Color theme of tooltip
effect: 'float', // float or fixed
show: false,
Expand Down

0 comments on commit 69dea07

Please sign in to comment.