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

v-for on a template which has a comment: throws an error when trying to shuffle the array #2080

Closed
amrnn90 opened this issue Sep 9, 2020 · 3 comments · Fixed by #2089
Closed

Comments

@amrnn90
Copy link

amrnn90 commented Sep 9, 2020

Version

3.0.0-rc.10

Reproduction link

https://codesandbox.io/s/youthful-sky-is4hc?file=/src/App.vue

Steps to reproduce

  1. Open reproduction link
  2. click on shuffle

What is expected?

Items should be rendered correctly after shuffling the array

What is actually happening?

Getting the following error:

Uncaught (in promise) TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'.

@lanezhao

This comment has been minimized.

@posva

This comment has been minimized.

@sionzee
Copy link

sionzee commented Sep 12, 2020

For me it is happening the same but instead of comment at my first position is "v-if" condition what have "false" value. Which results in <!--v-if--> comment.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 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

Successfully merging a pull request may close this issue.

4 participants