react-file-viewer
react-file-viewer copied to clipboard
Bug when use more than one PhotoViewer
When you use more than one PhotoViewer, the first PhotoViewer have all images and the others are empty, This is because in the method "componentDidMount", the line:
document.getElementById('pg-photo-container').appendChild(this.props.texture.image);
Only reference the first element with id "pg-photo-container'".
I am having the same issue