vue icon indicating copy to clipboard operation
vue copied to clipboard

Using v-show and :style="display: 'block'" simultaneously does not yield the expected results in version 2.7.16.

Open senwong opened this issue 5 months ago • 5 comments

Version

2.7.16

Reproduction link

codesandbox.io

Steps to reproduce

2.7.16 Demo

when the button is clicked, it initiates a component update. Subsequently, the content div is meant to be hidden. Nevertheless, the current behavior deviates, as the content div is displayed rather than being hidden.

2.7.15 Demo In version 2.7.15, clicking the button triggers a component update, and as a result, the content div consistently remains hidden.

The version 2.7.16 should not introduce this breaking change.

What is expected?

v-show should have a higher priority than :style.

What is actually happening?

The style is being updated incorrectly.

senwong avatar Dec 28 '23 02:12 senwong

amazing

dkdk135 avatar Jan 04 '24 06:01 dkdk135

Ran into this as well, had to revert to v2.7.15 after receiving a complaint

carakas avatar Jan 08 '24 14:01 carakas

i never noticed that !

ZAID-BAARAB avatar Jan 20 '24 21:01 ZAID-BAARAB

i never noticed that !

zhongzi-rail0039 avatar Feb 22 '24 04:02 zhongzi-rail0039

The error comes from: https://github.com/vuejs/vue/commit/f5ef882a781b8a62c9ca00e95006d07636567c8e

jackiotyu avatar Feb 28 '24 01:02 jackiotyu