nhn / tui.image-editor

🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
http://ui.toast.com/tui-image-editor
MIT License
6.84k stars 1.26k forks source link

When used multiple times on same screen on IOS mobile browsers getContext("2d") returns null #830

Open AbdulAhadArain opened 1 year ago

AbdulAhadArain commented 1 year ago

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"

lja1018 commented 1 year ago

@AbdulAhadArain I'll check. Thank you for the information.