Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy