Skip to content

Prop validation occurring before a v-if #1262

@rmp135

Description

@rmp135

If a component is set up such that it requires a prop of type Object, yet it also has a v-if on the same property, the prop validation fails when the value is set to null.

I don't feel this should be the case as the v-if should have caught the falsey value and not rendered/removed the component (thus no validation should take place).

Here's a JSBin demonstrating what I mean.

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