Fix onChange handler for select data entry

E.g. in Age > Source of Information, allows selecting
data.
This commit is contained in:
Tom Russell 2019-10-02 12:28:19 +01:00
parent 01f82ea18e
commit 1043d0e7a9

View File

@ -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 => (