Merge pull request #444 from tomalrussell/fix/selectbox

Fix SelectDataEntry
This commit is contained in:
Tom Russell 2019-10-02 12:32:37 +01:00 committed by GitHub
commit 0954f5aa36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class MultiDataEntry extends Component<any, any> { // TODO: add proper types
value: PropTypes.arrayOf(PropTypes.string),
placeholder: PropTypes.string,
disabled: PropTypes.bool,
handleChange: PropTypes.func,
onChange: PropTypes.func,
copy: PropTypes.bool,
toggleCopyAttribute: PropTypes.func,
copying: PropTypes.bool

View File

@ -17,7 +17,7 @@ const SelectDataEntry: React.FunctionComponent<any> = (props) => { // TODO: remo
id={props.slug} name={props.slug}
value={props.value || ''}
disabled={props.mode === 'view' || props.disabled}
onChange={props.handleChange}>
onChange={props.onChange}>
<option value="">{props.placeholder}</option>
{
props.options.map(option => (