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

Failed to execute 'insertBefore' on 'Node' #604

Closed
chz opened this issue Jan 9, 2020 · 2 comments
Closed

Failed to execute 'insertBefore' on 'Node' #604

chz opened this issue Jan 9, 2020 · 2 comments

Comments

@chz
Copy link

chz commented Jan 9, 2020

Version

3.0.0-alpha.1

Reproduction link

https://github.com/chz/vue-next-test

Steps to reproduce

Clone repository and start Vue
Click "Toggle Visibility" 3-4 times

What is expected?

Div should be inserted to the correct dom.

What is actually happening?

The node before which the new node is to be inserted is not a child of this node.

@cexbrayat
Copy link
Member

@yyx990803 I'm still running into this issue in alpha.2 with a simple v-else:

<input id="role-input" v-model="user.role" />
<div id="else">
      <div v-if="user.role === 'ADMIN'">
        <h2>Admin</h2>
      </div>
      <div v-else>
        <h2 id="hello">Hello</h2>
      </div>
      <div id="other">other</div>
</div>

Note that removing div#other makes it work again.

@cexbrayat
Copy link
Member

I opened a dedicated #622 to track this.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants