-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Order of elements not updating on change items #14
Comments
it would be useful if the |
+1 Same issue here |
@timur560 I made a fork which avoid the dom changes, so the issue is solved (only in this case of we use an API to apply the sort). On _onSortFinish(event) {
const myArray = [];
event.detail.items.forEach((element, elementIndex) => {
...
} |
This has been driving me up the wall (too). @RoXuS 's fork has shown me the way, but unfortunately I can't use it directly because it includes several modifications to the styling. |
Code:
This issue is that when itemsUpdatableFromApi variable is changing, and the order of them changed, the order of items in component keep not changed. However, the data in items is updating correctly.
To clarify the issue I will describe steps:
So, the id is changed and this is the correct data, but the order of displaying should be changed too. Because from API I receive items correctly ordered by priority (1,2,3)). But when I refresh the page, the order of items is correct:
The text was updated successfully, but these errors were encountered: