Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue 2.3.x, v-if do not append element before element moved away #3

Open
harvey-woo opened this issue May 4, 2017 · 3 comments
Open

Comments

@harvey-woo
Copy link

harvey-woo commented May 4, 2017

<template>
    <div>
        <a @click="showElement = true">Show Element</a>
        <div v-if="showElement" class=“element”>element</div>
        <div v-dom-portal></div>
    </div>
</template>
<script>
    export default {
        data: () => ({ showElement: false })
    }
</script>

v-if do not append element before element which had been moved away,
Tested in vue 2.2.6 represent correct, but not in vue 2.3.0, even 2.3.2

@luozhihua
Copy link

same problem.

@zhangjingrm
Copy link

same problem

1 similar comment
@martSforever
Copy link

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants