You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The two logs of innerHTML of the body should have a parent of div with an id of app.
Actual behaviour
It attached the component on the directly in the body.
Possible Solution
What are the alternative solutions? Please describe what else you have considered?
The text was updated successfully, but these errors were encountered:
JeromeDeLeon
changed the title
attachTo doesn't allow attaching to body
Component was still attached to body instead of element from attachTo
Jul 22, 2020
I don't know why the wrapper div document was getting removed just before mounting the component.
I found that createElement works just fine but if do that outside mount or before $mount, it will not work.
Now, the tests made on #1492 were passing because it didn't check whether it was really attached on the div wrapper. It was just checking if the root is null but I don't think it's the right behavior. Correct me if I'm wrong.
Subject of the issue
I don't know if what I'm doing is right but I am expecting the component to be attached in a
div
with anid
ofapp
but it's working as expected.I provided a codesandbox to replicate my issue.
Steps to reproduce
Run the test.
Expected behaviour
The two logs of
innerHTML
of the body should have a parent ofdiv
with anid
ofapp
.Actual behaviour
It attached the component on the directly in the body.
Possible Solution
What are the alternative solutions? Please describe what else you have considered?
The text was updated successfully, but these errors were encountered: