From 3df1fe65eb647e5a8bd9e2f54e16c0bb5a281fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Fabr=C3=ADcio?= Date: Thu, 20 Feb 2020 12:32:46 -0300 Subject: [PATCH] Fixed _isDisabledButtonLeft previously _isDisabledButtonLeft was checking whether the right button was disabled, not the left one, so when the right button was set as disabled, both would be. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9839a3c..8453622 100644 --- a/index.js +++ b/index.js @@ -268,7 +268,7 @@ class InputSpinner extends Component { * @private */ _isDisabledButtonLeft(){ - return (this.props.disabled || this.props.buttonRightDisabled); + return (this.props.disabled || this.props.buttonLeftDisabled); } /**