Skip to content

[bug] props validation breaks on initial invalid property #2580

@dragantl

Description

@dragantl

Vue.js version

1.0.20

Reproduction Link

https://jsfiddle.net/ardoramor/64reuz66/

The following link shows that, if property is initially valid, making it invalid and then valid again does not break the reactive-ness:
https://jsfiddle.net/ardoramor/64reuz66/2/

Steps to reproduce

Run both links and wait for 5 seconds. On the second link, wait 5 more seconds (10 total).

What is Expected?

I expect that first link's child will accept and react to the change in the parent's url once it becomes valid. The expected behavior is just like in the second link but only if the 5 first seconds were skipped.

What is actually happening?

Once the child receives an invalid initial property, further changes to the properties are ignored.

How is this scenario applicable?

I have a parent that gets its data from a remote location. Initial value is not set. However, I expect that, once the value is fetched and set to the parent, child can react to it.

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