Open weierstrass1 opened 4 years ago
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
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'".