This repository was archived by the owner on Feb 10, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 26
Switching between Dash application tabs clears the annotations on a canvas #31
Comments
Hey @nikandrovs94 (sorry for the slow response), could you please share here a minimal example reproducing the issue? |
Thanks for your reply, @emmanuelle ! Please find the minimal code below. I use it to select an image for dash canvas background via file browser (you can pick any image you have to test it). Just to clarify: The issue is that when I draw on the canvas in the first tab and then switch to the second tab and back to the first one, any lines that I drew are erased. It seems like the canvas is getting refreshed or something. Is there any way for the canvas to maintain users drawings while switching between dash tabs? Thanks,
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have created two Dash tabs for my application and each tab has a canvas with a background image. When I annotate one canvas by drawing, for example, rectangles, and then switch to the other tab and back to the initial one, the rectangles disappear but the background image remains in the canvas. How should I go about this issue?
The text was updated successfully, but these errors were encountered: