Describe the bug
In react when the image editor is opened at a minimum 3 times on the same screen with different images in a single session it throws an error of "null is not an object (evaluating ctx.clearRect)"
To Reproduce
Add image editor to a modal load image into the editor after loading on before modal close call editorInstance.toDataURL({ format: "jpeg", quality: 0.9 }), on the third image it will throw "null is not an object (evaluating ctx.clearRect)" error
Smartphone (please complete the following information):
Device: iPhone 10
OS: IOS 16
Browser Chrome
Additional context
Package version "@toast-ui/react-image-editor": "^3.15.0"
Describe the bug In react when the image editor is opened at a minimum 3 times on the same screen with different images in a single session it throws an error of "null is not an object (evaluating ctx.clearRect)"
To Reproduce Add image editor to a modal load image into the editor after loading on before modal close call editorInstance.toDataURL({ format: "jpeg", quality: 0.9 }), on the third image it will throw "null is not an object (evaluating ctx.clearRect)" error
Smartphone (please complete the following information):
Additional context Package version "@toast-ui/react-image-editor": "^3.15.0"