Thunberg087 / vue-fragment

a very candide fragment component for Vue.js
http://jsfiddle.net/cdkn5wL3/
670 stars 51 forks source link

Issue with fragment inside of slot with v-if #40

Open atomanyih opened 4 years ago

atomanyih commented 4 years ago

Minimal repro: https://codesandbox.io/s/vue-fragment-slot-ckird

  1. Click button to show content
  2. Click button to remove content
  3. not all children are removed & this error occurs:

"NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node."

privatenumber commented 3 years ago

@atomanyih

I made vue-frag which doesn't have this issue. 👉 Demo

Hope it meets your needs!

thehale commented 9 months ago

Our team had the same issue after we upgraded from Vue 2 to Vue 3. Since Vue 3 has built-in support for fragments, we simply removed this package to fix the issue.