data-test-id={this.props['data-test-id']}
/>
)}
-
+ {type === 'file' && (
+ <FormControl
+ bsClass={'form-control input-options-other'}
+ onChange={e => this.onChangeFile(e)}
+ disabled={isReadOnlyMode || Boolean(disabled)}
+ type={type}
+ data-test-id={this.props['data-test-id']}
+ inputRef={input => (this.input = input)}
+ />
+ )}
{type === 'textarea' && (
<FormControl
className="form-control input-options-other"
onChange(value);
}
+ onChangeFile(e) {
+ let { onChange } = this.props;
+ onChange(e.target.files[0]);
+ }
+
onChangeCheckBox(e) {
let { onChange } = this.props;
let checked = e.target.checked;