Fix onChange function on MuiSwitch component

This commit is contained in:
Harold 2019-03-18 18:16:45 -06:00
parent 66fd1aedaf
commit c23c6e0d4c

View file

@ -24,7 +24,7 @@ const MuiSwitch = createReactClass({
const value = target.checked;
//this.setValue(value);
this.props.onChange(this.props.name, value);
this.props.onChange(value);
setTimeout(() => {document.activeElement.blur();});
},