Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Merge pull request #952 from AlonGvili/patch-1
Browse files Browse the repository at this point in the history
Fixing  #951 Radio group placeholder bug
  • Loading branch information
adamdriscoll authored Jul 8, 2019
2 parents 21e6634 + 7d53e34 commit 3c6abc2
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,13 @@ export default class UdInputField extends React.Component {
name={`${this.props.inputId}${field.name}`}
id={`${this.props.inputId}${field.name}${idx}`}
disabled={field.disabled}
onChange={e => self.onRadioChanged(field, e)} value={option} />
<span>{option}</span>
onChange={e => self.onRadioChanged(field, e)}
value={option} />
<span>{field.placeholder[idx] ? field.placeholder[idx] : option}</span>
</label>
}.bind(this));

return [<p>{field.placeholder ? field.placeholder : field.name}</p>, options];
return options;
}

if (field.type == 'file' || field.type == 'binaryFile') {
Expand All @@ -259,4 +260,4 @@ export default class UdInputField extends React.Component {
}

}
}
}

0 comments on commit 3c6abc2

Please sign in to comment.