Subscribe on changes!

v-show is invalid on the DEV_ROOT_FRAGMENT node.

avatar
Mar 5th 2022

Version

3.2.31

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Observation hello

What is expected?

hello should twinkling

What is actually happening?

v-show = false invalid

avatar
Mar 5th 2022

Since v show changed the display style property, isn’t this just expected? The component needs to have a root node or to explicitly use v-bind=$attrs

avatar
Mar 7th 2022

I think this node is a single root node,https://github.com/vuejs/core/blob/5898629d723e82b68e9b17b91bf8b1a8390a3912/packages/runtime-core/src/componentRenderUtils.ts#L271-L292 And it behaves differently than the production mode.