Skip to content

Duplicate "container element"s #5390

@Rolanddoda

Description

@Rolanddoda

Version

3.2.30

Reproduction link

stackblitz.com

Steps to reproduce

In Vue 2 when we wrap things in #app we don't get 2 container elements.
In Vue 3 though, we do.

Check Vue 2 project: https://codesandbox.io/s/reverent-tdd-4hs4j?file=/src/App.vue
Check Vue 3 project: https://stackblitz.com/edit/vitejs-vite-jnq5k4?file=src/App.vue

Vue 2 screenshot:

image

Vue 3 screenshot:

image

Notice the 2 container elements with id app in Vue 3 version

What is expected?

Vue 2 and Vue 3 should both render one container element

What is actually happening?

In Vue 3 2 nested container elements are rendered


I know that in Vue 3 we can have multiple root elements, but I think the container elements functionality should be the same in Vue 3.

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