projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding-posibility-to-choose-files-many-times-and-dont-replace-other-files
[arvados-workbench2.git]
/
src
/
components
/
chips-input
/
chips-input.tsx
diff --git
a/src/components/chips-input/chips-input.tsx
b/src/components/chips-input/chips-input.tsx
index fc5fda01be0e7366c9de395b9c38a0b9bafe459d..13699660053824a8f205efc1f8a556ba43d8b106 100644
(file)
--- a/
src/components/chips-input/chips-input.tsx
+++ b/
src/components/chips-input/chips-input.tsx
@@
-17,6
+17,7
@@
interface ChipsInputProps<Value> {
inputProps?: InputProps;
deletable?: boolean;
orderable?: boolean;
inputProps?: InputProps;
deletable?: boolean;
orderable?: boolean;
+ disabled?: boolean;
}
type CssRules = 'chips' | 'input' | 'inputContainer';
}
type CssRules = 'chips' | 'input' | 'inputContainer';
@@
-106,6
+107,7
@@
export const ChipsInput = withStyles(styles)(
return <div className={classes.chips}>
<Chips
{...props}
return <div className={classes.chips}>
<Chips
{...props}
+ clickable={!props.disabled}
values={value}
filler={<div ref={this.filler} />}
/>
values={value}
filler={<div ref={this.filler} />}
/>
@@
-118,6
+120,7
@@
export const ChipsInput = withStyles(styles)(
{...InputProps}
value={this.state.text}
onChange={this.setText}
{...InputProps}
value={this.state.text}
onChange={this.setText}
+ disabled={this.props.disabled}
onKeyDown={this.handleKeyPress}
inputProps={{
...(InputProps && InputProps.inputProps),
onKeyDown={this.handleKeyPress}
inputProps={{
...(InputProps && InputProps.inputProps),