this.setState({ open: true });
}
-
closeDialog = () => {
this.setState({ open: false });
}
chipsInput = () =>
<ChipsInput
value={this.props.input.value}
+ disabled={this.props.commandInput.disabled}
onChange={noop}
createNewValue={identity}
getLabel={(file: CollectionFile) => file.name}
{...props}
error={this.props.meta.touched && !!this.props.meta.error}
readOnly
- onClick={this.openDialog}
- onKeyPress={this.openDialog}
+ disabled={this.props.commandInput.disabled}
+ onClick={!this.props.commandInput.disabled ? this.openDialog : undefined}
+ onKeyPress={!this.props.commandInput.disabled ? this.openDialog : undefined}
onBlur={this.props.input.onBlur} />
dialog = () =>
</div>
<Divider />
<div className={classes.chips}>
- <Typography variant='subheading'>Selected files ({this.state.files.length}):</Typography>
+ <Typography variant='subtitle1'>Selected files ({this.state.files.length}):</Typography>
<Chips
orderable
deletable