Skip to content

Commit

Permalink
Merge pull request #425 from MtBlue81/fix_state_initialization
Browse files Browse the repository at this point in the history
fix(index.js): fix state initialization
  • Loading branch information
aronhelser authored Sep 12, 2018
2 parents be89b82 + 69dea07 commit 3ba4d7a
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 @@ -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 3ba4d7a

Please sign in to comment.