Fabric.js : Objects dissapear from canvas on canvas.renderAll() in 6.0.2 #10184
Unanswered
predragslavkovic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I'm using fabric.js version 6.0.2.
I am trying to implement undo / redo logic in my project. I am using Vanilla JS.
Here is how it looks like:
The issue is when I click "Undo" all the content from canvas disappears until I click back on canvas. I'll provide video below:
Screencast.from.26.09.2024.16.43.11.webm
Sorry, I tried to display the cursor on screen recording, but it did'nt work.
First I moved the object -> then I clicked undo and that resulted in disappearance of all object -> then I clicked on canvas and everything appears again.
All advice and critiques are welcome since I'm not very proficient with Vanilla JS 🙏
Beta Was this translation helpful? Give feedback.
All reactions