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

Elements rendered in wrong order #29

Open
sircharleswatson opened this issue Mar 26, 2015 · 0 comments
Open

Elements rendered in wrong order #29

sircharleswatson opened this issue Mar 26, 2015 · 0 comments

Comments

@sircharleswatson
Copy link

Hey! I am experiencing a slight odd behavior.
The below template does not render as expected.

<h1>OrderID: #12345</h1>
<br>
{{#each items}}
    <p>{{itemName}}</p>
    <ul>
        {{#each arrayify selectedOptions}}
            <li>{{name}}: {{value}}</li>
        {{/each}}
    </ul>
{{/each}}

For some reason it is rendering like this (for 3 items in"each"):

<ul>
    <p>Name</p>
    <li>options</li>
    <li>option</li>
</ul>

<p>Name</p>
<ul>
    <li>option</li>
    <li>option</li>
</ul>

<p>Name</p>
<ul>
    <li>option</li>
    <li>option</li>
</ul>

On the first item, the <p> tag ends up inside the <ul> but the rest are outside.

Any ideas on what could be going on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant