Skip to content

Commit

Permalink
Fixed #972 - Tooltips appear with old contents after being undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Aug 28, 2019
1 parent 0671f2a commit e1555db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Button extends Component {
}

componentDidUpdate(prevProps) {
if (this.props.tooltip && prevProps.tooltip !== this.props.tooltip) {
if (prevProps.tooltip !== this.props.tooltip) {
if (this.tooltip)
this.tooltip.updateContent(this.props.tooltip);
else
Expand Down

0 comments on commit e1555db

Please sign in to comment.