Component disappears on first re-render #6372
Steps to reproduce
On the JSFiddle, wait for the
What is expected?
For CustomElA to still be in the DOM.
What is actually happening?
CustomElA is removed from the DOM on re-render. However, it comes back on the third re-render (tested using
The JSfiddle is using Vue v2.4.0 but I have verified the bug on v2.4.2 locally.
The text was updated successfully, but these errors were encountered:
Looks like a bug, thanks for reporting it. Looks like it was introduced in 2.1.4. It looks like the problem happens during the patch of vnodes though.
edit: looks like
This is fixed, but do note that because you are changing the element wrapping the slots, the element is considered "replaced" and thus all slot content, including the components in it, will be destroyed and then re-created. This is unfortunately how the vdom patching works and unlikely to change.