MCPcopy Create free account
hub / github.com/Lobos/react-ui / handleChange

Method handleChange

src/Upload.js:55–67  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

53 }
54
55 handleChange (value) {
56 const { onChange } = this.props;
57 if (value === undefined) {
58 if (this.isCompleted()) {
59 value = this.getValue();
60 } else {
61 value = new Error('');
62 }
63 }
64 if (onChange) {
65 onChange(value);
66 }
67 }
68
69 addFile () {
70 const { accept, autoUpload, disabled, readOnly, fileSize } = this.props;

Callers 3

addFileMethod · 0.95
removeFileMethod · 0.95
uploadFileMethod · 0.95

Calls 3

isCompletedMethod · 0.95
getValueMethod · 0.95
onChangeFunction · 0.85

Tested by

no test coverage detected