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

Comments

Projects
None yet
3 participants
@daffl
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

This comment has been minimized.

Show comment
Hide comment
@daffl

daffl Feb 27, 2014

Contributor

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

Contributor

daffl commented Feb 27, 2014

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

@justinbmeyer

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Feb 27, 2014

Contributor

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

Contributor

justinbmeyer commented Feb 27, 2014

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

@daffl

This comment has been minimized.

Show comment
Hide comment
@daffl

daffl Feb 27, 2014

Contributor

Isn't the Fiddle clear?

Contributor

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