Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My second open docx or PNG file never showed up #207

Open
mpj658321 opened this issue Nov 16, 2021 · 2 comments
Open

My second open docx or PNG file never showed up #207

mpj658321 opened this issue Nov 16, 2021 · 2 comments

Comments

@mpj658321
Copy link

Uploading 1637044825(1).jpg…

@hightgha
Copy link

hightgha commented Jul 6, 2022

add prop key={urlToFile} it fixed problem
<FileViewer key={file.url} filePath={file.url} fileType={file.type} />

@sseetal
Copy link

sseetal commented Jan 12, 2023

My experience was related to docx.

<div id={docx}>

Essentially because the code uses a static "Id" field, when you have multiple viewers, it won't be able to set the second Tag because they have the same id.

Since the project looks dead (many pull requests that have not been merged), I just copied the DocX viewer and updated it to handle ids

<div id={docx${this.props.id}}>

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

No branches or pull requests

3 participants