This commit is contained in:
Mirco Wittrien 2019-11-02 00:16:43 +01:00
parent 9a03aff6cd
commit cfe194eed2
2 changed files with 2 additions and 2 deletions

View File

@ -6155,7 +6155,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
handleChange() {
this.props.value = !this.props.value;
BDFDB.ReactUtils.forceUpdate(this);
if (typeof this.props.onChange == "function") this.props.onChange(!this.props.value, this);
if (typeof this.props.onChange == "function") this.props.onChange(this.props.value, this);
}
render() {
return BDFDB.ReactUtils.createElement(NativeSubComponents.Switch, Object.assign({}, this.props, {onChange: this.handleChange.bind(this)}));

File diff suppressed because one or more lines are too long