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
{{ message }}
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
It doesn't work(when I am trying to drop it to different element position, model gets updated with undefined object). But if I remove btn-row div (given as follows) then it works:-
ui-sortable element should only contain one ng-repeat and not any other elements (above or below).
Otherwise the index matching of the generated DOM elements and the ng-model's items will break.
In other words: The items of ng-model must match the indexes of the generated DOM elements.
And also suggests:
ui-sortable lists containing many 'types' of items can be implemented by using dynamic template loading with ng-include or a loader directive, to determine how each model item should be rendered.
So rephrasing README, I would suggest you to follow one of these directions:
either place the controls right below & outside the widget-holder
or use a directive for all list items and let it decide the proper way to present them (actual items or item with controls)
PS1: One more duplicate of #41...
PS2: It actually works as intended.
It doesn't work(when I am trying to drop it to different element position, model gets updated with undefined object). But if I remove btn-row div (given as follows) then it works:-
The text was updated successfully, but these errors were encountered: