;
+function RadioWrapper(target, id, data, {title, variants, outvar, icon}) {
+ return
;
}
class Switch extends Component {
@@ -70,7 +73,7 @@ class Switch extends Component {
super(props);
// Initialize the state object with the initial values from the props
this.state = {
- checked: props.outvar in props.data ? props.data[props.outvar] : !!(props.fallback)
+ checked: props.outvar in props.data ? !!(props.data[props.outvar]) : !!(props.fallback)
};
// Bind the event handler to this
@@ -106,6 +109,7 @@ class Switch extends Component {
onChange={this.handleClick}
/>
@@ -114,8 +118,8 @@ class Switch extends Component {
}
}
-function SwitchWrapper(target, id, data, {title, fallback, outvar}) {
- return