Skip to content

v-show should be !important #3761

@codysherman

Description

@codysherman

Vue.js version

2.0.0-rc.7

Reproduction Link

http://codepen.io/codysherman/pen/qaArqJ?editors=1010

Steps to reproduce

Have an element already have an !important display trait, such as one of Bootstrap's 'visible-*' classes.

What is Expected?

Vue should hide the element based on the v-show.

What is actually happening?

Because v-show doesn't have an !important tag, it is overruled. In my opinion, in the event of a conflict, the tie should obviously go to Vue, as it is getting its logic dynamically. Angular's ng-show applies the !important tag for this reason.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions