Skip to content

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

Closed
@JeromeDeLeon

Description

@JeromeDeLeon

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 an id of app 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 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?

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