You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[v4] reorder-group does not work properly when used in custom stencil components #16302
I am implementing a set of custom stencil components which are partly made up of Ionic V4 components. However, there are issues when using the ion-reorder-group component.
Ionic Info
@ionic/core: 4.0.0-beta.15
@stencil/core: 0.15.1
Describe the Bug
When the ion-reorder-group element is not within the initial viewport, the reorder animations are not displayed properly and the currently dragged item is not inserted at the right position within the reorder-group.
Steps to Reproduce
Init Stencil project ( component - starter )
Install ionic/core module
Replace initial my-component implementation with the example provided below ( Make sure the height of the placeholder div is sufficient to push the ion-reorder-group element out of the viewport )
Expected Behavior
When dragging an item within an ion-reorder-group, the animations should be displayed properly. When dropping an item, it should be inserted at the correct position within the list.
Reacted by Patrick Wespi, ppichier and Sebastián Ferreras
Thanks for the issue! Sorry I know this is a late reply but I am working on updating the documentation for the reorder-group and found this issue. I think the issue here is true has to be passed to complete():
event.detail.complete(true);
Otherwise it assumes that you don't want to finish the reorder and bounces the item back. I was able to get this working in the stencil conference app by passing true. I am running version "@ionic/core": "4.3.0". If you're still having issues with this version please let me know!
I personally think the complete() should work the same with or without true being passed, but I'd have to look into if this would be a breaking change or not.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. 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.
Activity
brandyscarney commentedon Apr 19, 2019
Thanks for the issue! Sorry I know this is a late reply but I am working on updating the documentation for the reorder-group and found this issue. I think the issue here is
truehas to be passed tocomplete():Otherwise it assumes that you don't want to finish the reorder and bounces the item back. I was able to get this working in the stencil conference app by passing
true. I am running version"@ionic/core": "4.3.0". If you're still having issues with this version please let me know!I personally think the
complete()should work the same with or withouttruebeing passed, but I'd have to look into if this would be a breaking change or not.brandyscarney commentedon Apr 19, 2019
I'm going to reopen this because our documentation states it should work with just
complete()and no variable passed so I believe this is a bug.fix(reorder-group): don't require a boolean to complete the reorder
fix(reorder-group): remove required parameter for the complete method (…
merge release-4.4.0
chore(): resolve merge conflicts from older hotfix
4.4.0
chore(): resolve conflicts from older hotifx
merge release-4.4.1
ionitron-bot commentedon May 22, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. 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.