Subscribe on changes!

Attribute inheritance inconsistent across production and development

avatar
Mar 8th 2022

Version

3.2.31

Reproduction link

Provided below

Steps to reproduce

Open development and production links, compare whether class red-bg is applied to the button.

Development

Production

What is expected?

For the development build to have consistent class inheritance logic as the production build

What is actually happening?

The class is only being inherited in development

avatar
Mar 11th 2022

the root cause is: the attribute could not be automatically inherited because component renders as a fragment in prod. but in DEV, we do a special treatment for DEV_ROOT_FRAGMENT. image

avatar
Apr 29th 2022

duplicate of #5523

these are a little different

avatar
May 11th 2022

Duplicate of #5189 and fixed by 51f3d386

avatar
May 12th 2022

Duplicate of #5189 and fixed by 51f3d38

now, a template ↓ , has attribute fallthrough

<template v-if="true">
  <span>test</span>
</template>

a template ↓ , has not attribute fallthrough

<template v-if="true">
  <!--flag-->
  <span>test</span>
</template>

Is this expected behavior?