Skip to content

Component was still attached to body instead of element from attachTo #1622

Closed
@JeromeDeLeon

Description

@JeromeDeLeon

Version

1.0.3

Reproduction link

https://codesandbox.io/s/interesting-water-y2j31

Steps to reproduce

Run the test

What is expected?

The two logs of innerHTML of the body should have a parent of div with an id of app.

What is actually happening?

It attached the component directly in the body.


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, it will not work.

I checked the tests made on #1492 and it was 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions