Skip to content

Reorder ion-items sometimes blocked together #7522

Closed

Description

@danbucholtz

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

Activity

  1. manucorporat commented on Aug 18, 2016

    @manucorporat
    Contributor

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

  2. estyles commented on Oct 19, 2016

    @estyles

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

  3. estyles commented on Oct 20, 2016

    @estyles

    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

  4. manucorporat commented on Oct 20, 2016

    @manucorporat
    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!!

  5. manucorporat commented on Nov 20, 2016

    @manucorporat
    Contributor

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

  6. added a commit that references this issue on Nov 20, 2016
    8bb3ccd
  7. zakton5 commented on Jul 19, 2017

    @zakton5
    Contributor

    @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.

  8. ionitron-bot commented on Jul 19, 2018

    @ionitron-bot

    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!

  9. locked and limited conversation to collaborators on Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions