Skip to main content
NiladriAnswer
Known Participant
Sep 6, 2023 11:53 AM UTC

Hi @ostefaniuk,

Yes, we have fixed the issue.
We were using RequireJS library which caused the preview issue.

However, we have fixed the issue by forwarding ‘fixDependencies’ property to Content Preview widget by using ‘contentPreviewProps’ property.

Please find the following code snippet:

var contentExplorer = new Box.ContentExplorer();
contentExplorer.show(folderId, accessToken, {
    container: ".explorer-container",
    contentPreviewProps: {
        fixDependencies: true
    }
});

Regards,
Niladri

5 replies

ostefaniuk Box
Developer Advocate
Jul 24, 2023 11:59 AM UTC

Hello @Niladri, thanks for posting your question. Firstly, could you please use the latest version which is 17.1.0?

https://cdn01.boxcdn.net/platform/elements/17.1.0/en-US/explorer.css
https://cdn01.boxcdn.net/platform/elements/17.1.0/en-US/explorer.js

Could you specify what Frontend framework are you using? Are there any additional errors in the browser console?

Regards,
Olga

Translate
NiladriAuthor
Known Participant
Jul 24, 2023 12:31 PM UTC

HI @ostefaniuk, Thanks for answering the question. We are using a script that seems to be causing the issue.

Regards,
Niladri

Translate
ostefaniuk Box
Developer Advocate
Jul 26, 2023 2:29 PM UTC

Hi @Niladri, did you managed to adjust the script you mentioned?

Translate
NiladriAuthorAnswer
Known Participant
Sep 6, 2023 11:53 AM UTC

Hi @ostefaniuk,

Yes, we have fixed the issue.
We were using RequireJS library which caused the preview issue.

However, we have fixed the issue by forwarding ‘fixDependencies’ property to Content Preview widget by using ‘contentPreviewProps’ property.

Please find the following code snippet:

var contentExplorer = new Box.ContentExplorer();
contentExplorer.show(folderId, accessToken, {
    container: ".explorer-container",
    contentPreviewProps: {
        fixDependencies: true
    }
});

Regards,
Niladri

Translate
ostefaniuk Box
Developer Advocate
Sep 6, 2023 12:00 PM UTC

Hi @Niladri, Thanks a lot for the update!

Translate