Skip to content
This repository was archived by the owner on Dec 13, 2021. It is now read-only.
This repository was archived by the owner on Dec 13, 2021. It is now read-only.

Item number not updating when reordering #39

@stvnhrlnd

Description

@stvnhrlnd

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:

stacked-content-reorder

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions