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

Nested repeats don't work #5

Closed
ultimatedelman opened this issue Feb 1, 2013 · 2 comments
Closed

Nested repeats don't work #5

ultimatedelman opened this issue Feb 1, 2013 · 2 comments
Labels

Comments

@ultimatedelman
Copy link
Contributor

If I have a repeater within a repeater, the inner repeater doesn't work

<div data-draft-repeat="5">
    <ul>
          <li data-draft-repeat="3" data-draft-text="1/s"></li>
    </ul>
</div>

only results in one <li>

@ndreckshage
Copy link
Owner

this is a tricky one, i think i need to create a new jquery selector to filter out children with the same data attribute, so it only selects top level elements first. after duplicating all of that, goes through and gets the child elements and duplicates those.

http://jsfiddle.net/ndreckshage/EyWnU/

@ndreckshage
Copy link
Owner

hey this should be fixed with bc42c5e

let me know if it doesnt work as expected

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

No branches or pull requests

2 participants