filestack-react icon indicating copy to clipboard operation
filestack-react copied to clipboard

IE11 issue

Open ksntcrq opened this issue 5 years ago • 4 comments

Hey,

The latest release (3.0.0) of filestack-react introduces a new bug in IE11:

image

The page crashes and becomes white because of the component.

Killian

ksntcrq avatar Jun 04 '19 08:06 ksntcrq

@killiansc Can you share props which you pass to the component? This problem occurs at start or after some action?

AndrzejSala avatar Jun 04 '19 10:06 AndrzejSala

@AndrzejSala this problem happens when the component has to render, not after any action.

The code is the following:

            <ReactFilestack
                apikey={this.props.apiKey}
                customRender={({ onPick }) => (
                    <button
                        className={classNames('btn-stu btn-primary-stu', this.props.className)}
                        data-test-selector="filestack-button"
                        onClick={(e) => {
                            this.props.onClick();
                            onPick(e);
                        }}
                    >
                        {Lang.get('upload_from_cloud')}
                    </button>
                )}
                clientOptions={{
                    sessionCache: true,
                }}
                actionOptions={{
                    fromSources: [
                        'googledrive',
                        'dropbox',
                        'onedrive',
                    ],
                    accept: [
                        'application/pdf',
                        'application/msword',
                        'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
                    ],
                    maxFiles: 100,
                    onFileUploadStarted: this.props.onUploadFileStarted,
                    onFileSelected: this.handleFileSelected,
                    customText: { ... },
                }}
                onSuccess={this.handleDocumentsUploadedFromCloud}
            />

ksntcrq avatar Jun 05 '19 09:06 ksntcrq

@AndrzejSala any news about this?

I don't have the issue described above anymore - maybe because of a React version bump -, but I do have a new problem on IE11. When opening the Filestack modal, the only thing I can get is "Something went wrong" with a "Retry" button. Do you know what's happening?

ksntcrq avatar Sep 12 '19 08:09 ksntcrq

Is this still happening in 4.0 version? Isn't that filestack-js-core library?

jakubpeksa avatar Dec 22 '20 10:12 jakubpeksa