Fix onChange handler for select data entry
E.g. in Age > Source of Information, allows selecting data.
This commit is contained in:
parent
01f82ea18e
commit
1043d0e7a9
@ -17,7 +17,7 @@ const SelectDataEntry: React.FunctionComponent<any> = (props) => { // TODO: remo
|
|||||||
id={props.slug} name={props.slug}
|
id={props.slug} name={props.slug}
|
||||||
value={props.value || ''}
|
value={props.value || ''}
|
||||||
disabled={props.mode === 'view' || props.disabled}
|
disabled={props.mode === 'view' || props.disabled}
|
||||||
onChange={props.handleChange}>
|
onChange={props.onChange}>
|
||||||
<option value="">{props.placeholder}</option>
|
<option value="">{props.placeholder}</option>
|
||||||
{
|
{
|
||||||
props.options.map(option => (
|
props.options.map(option => (
|
||||||
|
Loading…
Reference in New Issue
Block a user