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

2.x not compatible with @html-next/vertical-collection #366

Open
BryanCrotaz opened this issue Apr 23, 2020 · 0 comments
Open

2.x not compatible with @html-next/vertical-collection #366

BryanCrotaz opened this issue Apr 23, 2020 · 0 comments

Comments

@BryanCrotaz
Copy link

BryanCrotaz commented Apr 23, 2020

Vertical collection expects the items provided by group.model to be an array or an object that implements objectAt and will assert if they're not.

Works in ember-sortable 1.x.

<SortableGroup model=myModel as |group|>
  {{#vertical-collection items=group.model as |item|}} 
    <SortableItem model={{item}}>
      <div>{{item.name}}</div>
    </SortableItem>
  {{/vertical-collection}}
</SortableGroup>
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