Due to the licensing issue in ReactJS, we were forced to find an open source alternative. So we decided to use PreactJS which is a React alternative. After porting to Preact, we found that the onChange handler wasn't working on input element. Below is part of the code in my render function:
{
(function () {
if (node.fileType === 'dir') {
return <li className="tip-item" onClick={comp.showUpload.bind(comp, refs)}>
<form className='fileForm' style={{display: 'inline-block'}}>
<input type="file" name="file" className="import-file-input" ref="fileUpload" onInput={comp.uploadFile.bind(comp,node, filePath)}/>
</form>Upload</li>;
}
})()
}
Any help would be appreciated.