-
When I have the auto save option on and change a vanilla js template that adds html to the dom via js the preview browser changes to the new data manipulated by the js file but after that (1s) it shows the browser preview with only the pure html from the html file without any dom manipulation. This also happens if I have the auto save option off and save twice (ctrl + s) Would like to know if I'm doing something wrong? index.html
index.js |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@skillsboy I could replicate this issue. The most curious part about this is that saving a file twice has a different result on the first and second save. I'm unsure of exactly what is causing this, but am also interested in knowing why you are looking to add text ("No manipulation") inside the |
Beta Was this translation helpful? Give feedback.
@skillsboy I could replicate this issue. The most curious part about this is that saving a file twice has a different result on the first and second save.
I'm unsure of exactly what is causing this, but am also interested in knowing why you are looking to add text ("No manipulation") inside the
div
tag? I would recommend either adding the HTML you require toindex.js
, or removing theid="app"
from your HTML (which is used to replace the contents).