ionic-team / ionic-team/ionic-framework

bug: ionReorderGroup does not work with custom components

Đang mở
#22,934 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
package: core type: bug
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

# Bug Report
I am trying to use ion-reorder for drag & drop functionality it works fine if the loop is on ionic components (i.e.list, item) but when I try with custom components the reorder puts components at the end of the list.

**Ionic version:**
[ ] **4.x**
[x] **5.x**

**Current behavior:**
When using reorder with custom components it sets items at the end of the list.

**Expected behavior:**
When using reorder with custom components it should set item at the place I drop.

**Related code:**
https://stackblitz.com/edit/ionic-v4-angular-tabs-r9zbtf?file=src/app/tabs/tabs.page.html

**Other information:**
checked this: https://github.com/ionic-team/ionic-framework/issues/19447
No solution on either forum or any other GitHub issues

**Ionic info:**
```
Ionic:

Ionic CLI : 6.12.1
Ionic Framework : @ionic/angular 5.6.0-dev.202102091522.082160d
@angular-devkit/build-angular : 0.1101.3
@angular-devkit/schematics : 11.1.3
@angular/cli : 11.1.3
@ionic/angular-toolkit : 3.0.0

Capacitor:

Capacitor CLI : 2.4.4
@capacitor/core : 2.4.4

Cordova:

Cordova CLI : 10.0.0
Cordova Platforms : none
Cordova Plugins : no whitelisted plugins (0 plugins total)

Utility:

cordova-res : not installed
native-run : not installed

System:

NodeJS : v10.23.0
npm : 6.14.8
OS : macOS Big Sur
Xcode : Xcode 12.2 Build version 12B45b
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.