react-pdf-editor icon indicating copy to clipboard operation
react-pdf-editor copied to clipboard

The ImageAttachment shows the wrong location after deleting other ImageAttachment.

Open twkevinzhang opened this issue 2 years ago • 1 comments

In the demo, after I uploaded two pictures, I tried to delete the first picture by pressing the button. However, the second picture disappeared from the screen, leaving the first picture that should be deleted.

Until I get to the next PDF Page, and then I switch back to this page, then I got the correct view.

https://user-images.githubusercontent.com/33894721/147447223-71aa49f9-ea54-4f00-b806-409bd78c11ef.mov

I watched the array in redux and the data in it is correct, so this may be an issue about the life cycle of React Canvas Component.

twkevinzhang avatar Dec 27 '21 07:12 twkevinzhang