Skip to content

Reorder ion-items sometimes blocked together #7522

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

Closed
danbucholtz opened this issue Aug 2, 2016 · 8 comments
Closed

Reorder ion-items sometimes blocked together #7522

danbucholtz opened this issue Aug 2, 2016 · 8 comments
Assignees

Comments

@danbucholtz
Copy link
Contributor

danbucholtz commented Aug 2, 2016

Sometimes, when I am trying to perform a re-order, my ion-items get "grouped" together and I cannot drop at a certain index. See the video here for the recreation. I am able to recreate this using the basic e2e test for re-order.

Thanks,
Dan

@danbucholtz
Copy link
Contributor Author

@manucorporat
Copy link
Contributor

@danbucholtz I am aware of this issue, thanks for creating an issue.
I am still not sure how to fix it though

@estyles
Copy link

estyles commented Oct 19, 2016

in case these two issues are related, this fixes the one I opened.
estyles@4c8bbdf

@estyles
Copy link

estyles commented Oct 20, 2016

Ok looked into it again, the above fix didn't actually fix the problem just some syptoms.

I managed to fix both the 'blocked together' and the 'wrong index' bug now.
But this fix does require a temporary div to be inserted at the bottom of the list while reordering, to allow reordering to the last index, which is not ideal.
There is probably some way to do without, but I'm quite sure reordering works correctly now.
I can create a pull request if needed, but I didn't write any tests, and my code probably should use renderer for the dom updates.

for changes see: master...estyles:master

@manucorporat
Copy link
Contributor

Please create the PR! I will look into it! it might not be the best solution, but you are getting close. Please submit it!!

@manucorporat
Copy link
Contributor

@estyles I am working in a new algorithm for reorder list that fixes this issue and improves the performance

@zakton5
Copy link
Contributor

zakton5 commented Jul 19, 2017

@manucorporat Can we go ahead and pull this in if it works? If not, I can make my own PR with a fix that solved both problems.

@ionitron-bot
Copy link

ionitron-bot bot commented Jul 19, 2018

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!

@ionitron-bot ionitron-bot bot closed this as completed Jul 19, 2018
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants