Open christophedebatz opened 7 years ago
@christophedebatz Brilliant! Would you mind making a PR?
If the problem was fixed why is the issue not closed?
@wubocong Wow I've just discover the principle of GitHub notifications (at the top right corner), so I'd just see that you replied to my old comment ;) sorry for the PR dudes. Have a nice coding!
doesnt work also ,
index.js:29900 Uncaught TypeError: Cannot read property 'target' of undefined
'file' is not defined no-undef 'user' is not defined no-undef 'mill' is not defined no-undef
Hi everybody,
Thank's for this component but at home it does not work.
Indeed, the props.options are not overidded at all.
I make it worked, I just replaces the block by this one:
const options = _.defaults(props.options, { dataType: 'json', timeout: 0, numberLimit: 0, userAgent: window.navigator.userAgent, multiple: false, withCredentials: false, beforeChoose: emptyFunction, didChoose: emptyFunction, beforeUpload: emptyFunction, didUpload: emptyFunction, uploading: emptyFunction, uploadSuccess: emptyFunction, uploadError: emptyFunction, uploadFail: emptyFunction, onAbort: emptyFunction });
With lodash:
import _ from 'lodash';