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 Dec 13, 2021. It is now read-only.
When a name template is not supplied Inner Content uses the template Item {{$index+1}}, however this isn't reflected on the UI when the order is changed:
I've looked into this and I noticed that the UI.Sortable update callback is used to populate the names (see this line). If you put a breakpoint in that callback you'll see that it's called before the model is updated, so the underlying array hasn't been reordered yet. Using the stop callback instead seems to fix it, although I've not tested rigorously.
When a name template is not supplied Inner Content uses the template
Item {{$index+1}}, however this isn't reflected on the UI when the order is changed:I've looked into this and I noticed that the UI.Sortable
updatecallback is used to populate the names (see this line). If you put a breakpoint in that callback you'll see that it's called before the model is updated, so the underlying array hasn't been reordered yet. Using thestopcallback instead seems to fix it, although I've not tested rigorously.