angular-ui/ui-sortable

'$modelValue.splice' let me get a wrong currentContainer ?

10081677wc opened this issue · 5 comments

Hi,

ui.item.sortable.moved = ngModel.$modelValue.splice(ui.item.sortable.index, 1)[0];

This code in callbacks.remove may be some problems?
When the dom changed cause by $modelValue, I sometimes get a wrong currentContainer.

Can you fork one of the provided examples to reproduce the issue you are facing?

Please retest against the just released v0.17.2.

Thank you for your advice,
unfortunately, the same problem occurs in the v0.17.2,
and I find the question #534,
it' s a similar situation to mine,
I will try to reproduce the issue :)

Hi,
I find the problem lies in 'track by $index'.

Thanks for sharing!