Skip to content

Date comparisons don't work in v-if/v-show #784

Closed
@cheapsteak

Description

@cheapsteak

http://jsfiddle.net/5sH6A/92/

<div v-if="Date.now() < new Date('2020-01-01')">ASDFGASDFGASDFG</div>
<div v-if="Date.now() > new Date('2020-01-01')">QWERTQWERTQWERT</div>

Seems like it's converting new Date into newDate and trying to look for both that and Date in the properties list in the current scope

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