Skip to content

v-show conflicts with style display binding #4768

Closed
@zhaozhongyu

Description

@zhaozhongyu

Version

3.2.20

Reproduction link

codepen.io

Steps to reproduce

click changeStyle

What is expected?

item display style change

What is actually happening?

item display style was reset by v-show cached style _vod

if ('_vod' in el) {
    style.display = currentDisplay
  }

is it feature or bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions