Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#each with nested #if not working as expected #750

Closed
daffl opened this issue Feb 20, 2014 · 3 comments
Closed

#each with nested #if not working as expected #750

daffl opened this issue Feb 20, 2014 · 3 comments

Comments

@daffl
Copy link
Contributor

daffl commented Feb 20, 2014

When iterating over a template with #each that has a directly nested #if statement, lists are not automatically updated in the DOM:

    <ul>
        {{#each list}}
            {{#if visible}}
            <li>{{name}}</li>
            {{/if}}
        {{/each}}
    </ul>

Fiddle: http://jsfiddle.net/DWd5c/

This might be related to #677.

@daffl daffl added this to the 2.0.6 milestone Feb 20, 2014
@daffl daffl added the Bug label Feb 26, 2014
@daffl
Copy link
Contributor Author

daffl commented Feb 27, 2014

Actually it doesn't work for any directly nested block statement.

@justinbmeyer
Copy link
Contributor

What do you mean by: "lists are not automatically updated in the DOM:"

@daffl
Copy link
Contributor Author

daffl commented Feb 27, 2014

Isn't the Fiddle clear?

@daffl daffl modified the milestones: 2.1.0, 2.0.6 Mar 13, 2014
alexisabril pushed a commit that referenced this issue Apr 2, 2014
alexisabril pushed a commit that referenced this issue Apr 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants