Skip to content

Strange error, when we watch and work with the list. #728

Closed
@grimalschi

Description

@grimalschi

Demo: http://jsfiddle.net/e9e2bw6v/2/

We have list, which is under watching. In watch we just replace text:null to text: 'some text'.

When we add an item, and later we clear list, we see error.

We have html:
<div v-if="list.length">
<div v-if="list[0].text">
{{list[0].text}}
</div>
</div>

If we remove second condition, we will not have error.

If you replace 2 conditions to 1 <div v-if="list.length && list[0].text">, we will not have error.

I cannot explain this, but its wrong.

P.S. Sory for bad english.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions