ionic-team / ionic-team/ionic-framework
bug: disabling and sorting not working well with nested ion-reorder-group
- Lingua principale
- TypeScript
- Stelle
- 52.7k
- Fork
- 13.3k
- Merge medio
- 1g 15h
- PR unite (30g)
- 51
Descrizione
# Bug Report
**Ionic version:**
[ ] **4.x**
[x] **5.x**
**Current behavior:**
Nested `ion-reorder-group` is not working. I have a list of cards and in the list of cards I have a list of items. Now the user has the option to reorder the cards and the elements.
Naturally I created two reorder groups. One in the for the cards and one inside for the items.
However there now are a few problems:
1. Reorder elements from the item gets added to the cards reorder group. SO the cards reorder group gets triggered by the items
2. Disabled cards reorder group still gets its event triggered by the items (items reorder group is enabled)
3. Disabling item reorder group does not work when cards reorder group is enabled
**Expected behavior:**
Correctly add the `ion-reorder` elements only to its closest parent `ion-reorder-group`
**Steps to reproduce:**
**Related code:**
https://stackblitz.com/edit/ionic-5-angular-10-start-template-5jby2n?file=src%2Fapp%2Ftab1%2Ftab1.page.ts
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.