Skip to content

Using v-if/v-show with v-cloak #1028

Closed
Closed
@iJackUA

Description

@iJackUA

The following code snippet

<ul v-if="posts.length > 0" v-cloak></ul>
<ul v-show="posts.length > 0" v-cloak></ul>
<ul v-cloak></ul>

produces such result

<ul v-cloak=""></ul>
<ul></ul>
<ul></ul>

And element remain hidden even when if="posts.length > 0" became true.
I expected v-cloak to go away in all cases.
Is it by design (special use case with v-if) ? I suppose it should be or fixed, or a warning added (about potential issue of v-if + v-cloak mixtures).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions