From 60a202fdc9645aa00f20c52e5152f168a1b0031b Mon Sep 17 00:00:00 2001 From: Matt Farmer Date: Tue, 20 Sep 2016 18:02:17 -0700 Subject: [PATCH] [IconButton] Remove unused conditional It appears that this conditional was added in 77a3d71, but even at that time, there does not seem to be any calls to set the state of `hovered`, and so it it always `undefined` which means we always are entering this `if` block. --- src/IconButton/IconButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IconButton/IconButton.js b/src/IconButton/IconButton.js index 62749f41867857..578c650683e88d 100644 --- a/src/IconButton/IconButton.js +++ b/src/IconButton/IconButton.js @@ -171,7 +171,7 @@ class IconButton extends Component { if (keyboardFocused && !this.props.disabled) { this.showTooltip(); if (this.props.onFocus) this.props.onFocus(event); - } else if (!this.state.hovered) { + } else { this.hideTooltip(); if (this.props.onBlur) this.props.onBlur(event); }