Skip to content

v-show is firing late on 2.5.1 #6813

@ericcirone

Description

@ericcirone

Version

2.5.1

Reproduction link

https://codepen.io/ericcirone/pen/pWOrMB

Steps to reproduce

Go here - https://codepen.io/ericcirone/pen/pWOrMB
This is on 2.5.1 At < 1000px wide the test list should get hidden. If you go back and forth over that threshold you can make the list flash. It flashes because it is hidden by v-show. But in the CSS i make the list vertical under 1000px. It seems that v-show is firing a too late.

You can see the comparison to 2.4.4 here https://codepen.io/ericcirone/pen/Oxoxzr
On 2.4.4 you can not get the list to flash at the larger size.

What is expected?

List should be hidden at < 1000px.

What is actually happening?

List flashes vertical for a split second before disappearing.


Just noticed this when updating to 2.5.1. Hopefully its a quick fix. I'm using this behavior on a menu bar and now when you make the screen smaller its very janky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions