You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divng-sortable="items"><divclass="sortable-element" ng-repeat="item in items"><divng-style="{backgroundColor: item.color}">
{{item.name}}, {{item.profession}}
</div></div></div>
The original:
<divng-sortable="items"><divclass="sortable-element" ng-repeat="item in items" ng-style="{backgroundColor: item.color}">
{{item.name}}, {{item.profession}}
</div></div>
Having another level of nesting, e.g. a <div>, inside a .sortable-element seems to break it. Do you have any idea why? I want to make a sortable list of more than just plain text. I can try to help (pull-request) if you can point me in a direction. Also, are you able to replicate the error? And lastly, is there a way around this / am I doing something wrong?
The text was updated successfully, but these errors were encountered:
@drhumlen
I have the same problem,maybe we can judge weather the trigger element's parents has a 'sortable-element' class before add a new class 'sortable-element-active'?
Sorry for the delay, I just updated index.html using inner div's but I was unable to reproduce the issue. My first guess, it's a css issue. If you find the exact problem it would be really nice from you to add a comment :)
If you look at my example, I've placed a
<div>
inside the sortable, which seems to break everything.( demo: http://plnkr.co/edit/DfMGxmjCYYxdua8lYSQU?p=preview )
My code:
The original:
Having another level of nesting, e.g. a
<div>
, inside a.sortable-element
seems to break it. Do you have any idea why? I want to make a sortable list of more than just plain text. I can try to help (pull-request) if you can point me in a direction. Also, are you able to replicate the error? And lastly, is there a way around this / am I doing something wrong?The text was updated successfully, but these errors were encountered: