Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loaded SVG data gets replicated thousand times ( as many as you typed in editor ) #74

Open
msilveirabr opened this issue Mar 4, 2023 · 0 comments

Comments

@msilveirabr
Copy link

I've seen the SVG node disappear in editor after some time, only right side code editor working fine
This leads to strange behaviors most of the time.
Although I was able to prove that my code is working fine and not in a loop by using console.log in multiple points of the code, after some time, the loaded svg starts getting "replicated".

Thius is my svg data:

<svg id="snappy" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 300 40" ></svg>

The I load and insert the same SVG for each dataset ( multiple switches ).

after sometime of coding in the editor, the result of console.log for the #snappy svg node is this:
Screenshot from 2023-03-03 22-32-39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant