react-file-viewer icon indicating copy to clipboard operation
react-file-viewer copied to clipboard

Bug when use more than one PhotoViewer

Open weierstrass1 opened this issue 5 years ago • 1 comments

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

weierstrass1 avatar Jan 15 '20 17:01 weierstrass1

I am having the same issue

divsbhalala avatar Dec 16 '20 10:12 divsbhalala