plangrid / react-file-viewer

MIT License
523 stars 338 forks source link

Bug when use more than one PhotoViewer #137

Open weierstrass1 opened 4 years ago

weierstrass1 commented 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'".

divsbhalala commented 3 years ago

I am having the same issue