react-pdf-editor
react-pdf-editor copied to clipboard
The ImageAttachment shows the wrong location after deleting other ImageAttachment.
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.