arnthor3 / react-bootstrap-toggle

Bootstrap-toggle without the JQuery dependencies
Other
53 stars 17 forks source link

Disabled is not working #16

Closed Karthi-SRV closed 7 years ago

Karthi-SRV commented 7 years ago

<Toggle on={<h5>Enabled</h5>} off={<h5>Disabled</h5>} size="xs" offstyle="danger" active={this.state.status} onClick={this.statusChangeSwitch.bind(this)} disabled />

Disable the toggle is not working

arnthor3 commented 7 years ago

can you switch the state with the disabled prop on?

arnthor3 commented 7 years ago

In the latest version the disabled prop is working but however the disabled prop is just on the root component and it looks like it's not working. I am pushing a new fix for this. Thanks for the catch