Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Component does not work #2

Open
christophedebatz opened this issue Feb 16, 2017 · 4 comments
Open

Component does not work #2

christophedebatz opened this issue Feb 16, 2017 · 4 comments

Comments

@christophedebatz
Copy link

christophedebatz commented Feb 16, 2017

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';

@wubocong
Copy link
Owner

@christophedebatz Brilliant! Would you mind making a PR?

@hasnat hasnat mentioned this issue May 17, 2017
@Moejoe90
Copy link

If the problem was fixed why is the issue not closed?

@christophedebatz
Copy link
Author

@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!

@ImenTurki
Copy link

ImenTurki commented Jan 19, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants