diff --git a/src/bootstrap-switch-button-react.js b/src/bootstrap-switch-button-react.js index fa3bd04..ae8ba80 100644 --- a/src/bootstrap-switch-button-react.js +++ b/src/bootstrap-switch-button-react.js @@ -53,6 +53,10 @@ export default class BootstrapSwitchButton extends React.Component { if (typeof checked === 'boolean' && checked !== prevState.checked) { this.setState({ checked }); } + const { disabled } = this.props; + if (typeof disabled === 'boolean' && disabled !== prevState.disabled) { + this.setState({ disabled }); + } } toggle = event => {