Skip to content
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

can't delete item from reordable list #124

Closed
boris-741 opened this issue Apr 1, 2019 · 0 comments
Closed

can't delete item from reordable list #124

boris-741 opened this issue Apr 1, 2019 · 0 comments
Assignees
Labels

Comments

@boris-741
Copy link

boris-741 commented Apr 1, 2019

if there are more than 10 elements in the reordable lis, then when I delete from it I get an error due to incorrect sorting
instancePorts = node.InstancePorts.Where(x => isMatchingInstancePort(x.fieldName)).OrderBy(x => x.fieldName).ToList();
before sort we got
item 1
item 2
....
item 10

and after sort
item 1
item 10
item2
...
item9

maybe there will be enough
instancePorts = node.InstancePorts.Where(x => isMatchingInstancePort(x.fieldName)).ToList();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants