vuejs/vue

Why does manipulating the style property of the DOM not take effect?

workCleaner opened this issue · 1 comments

Version

2.5.22

Reproduction link

codesandbox.io

Steps to reproduce

When a DOM element uses style="display:none;" and is involved in v-else-if rendering within a component, removing the style attribute directly from the DOM can fail. On the App page in CodeSandbox, the removal method will execute after a seven-second delay.

What is expected?

The style attribute is removed correctly.

What is actually happening?

The style attribute is not removed correctly.

posva commented

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.