Skip to content

Commit

Permalink
fix: remove enable/disable hover from componentDidUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
sangar-1028 committed May 24, 2023
1 parent 2f183b3 commit 6ce05a7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/Hoverable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ class Hoverable extends Component {
return;
}

if (this.props.disabled) {
if (this.props.disabled && this.state.isHovered) {
this.setState({isHovered: false});
this.disableHover();
} else {
this.enableHover();
}
}

Expand Down

0 comments on commit 6ce05a7

Please sign in to comment.