Merge changes I708f8fc2,Ife664a90,I5ea07463 into projects
[osm/UI.git] / skyquake / framework / widgets / form_controls / input.jsx
index 1563f29..d605614 100644 (file)
@@ -97,10 +97,12 @@ function buildRadioButtons(props) {
        <div className={className}>
             {
                 props.options.map((o,i) => {
+                    let label = o.label || o;
+                    let value = o.value || o;
                     return (
                         <label key={i}>
-                            {o.label}
-                            <input type="radio" checked={props.value == o.value} value={o.value} onChange={props.onChange} />
+                            {label}
+                            <input type="radio" checked={props.value == value} value={value} onChange={props.onChange} />
                         </label>
                     )
                 })