Merge pull request #444 from tomalrussell/fix/selectbox
Fix SelectDataEntry
This commit is contained in:
commit
0954f5aa36
@ -13,7 +13,7 @@ class MultiDataEntry extends Component<any, any> { // TODO: add proper types
|
|||||||
value: PropTypes.arrayOf(PropTypes.string),
|
value: PropTypes.arrayOf(PropTypes.string),
|
||||||
placeholder: PropTypes.string,
|
placeholder: PropTypes.string,
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
handleChange: PropTypes.func,
|
onChange: PropTypes.func,
|
||||||
copy: PropTypes.bool,
|
copy: PropTypes.bool,
|
||||||
toggleCopyAttribute: PropTypes.func,
|
toggleCopyAttribute: PropTypes.func,
|
||||||
copying: PropTypes.bool
|
copying: PropTypes.bool
|
||||||
|
@ -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