adopted-ember-addons / adopted-ember-addons/ember-sortable

`.sortable-item` class is not applied to updated rows within ember-table

Aperta
#514 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
299
Fork
159
Merge medio
4g 6h
PR unite (30g)
4

Descrizione

**Describe the bug**
I'm using `ember-sortable` v4.0.3 to reorder the rows within `ember-table` v5.0.0. Initially, when rows are rendered, `.sortable-item` class is applied to the rows, but after updating the array according to the reordered data `.sortable-item` class is not re-applied.

After the reorder is done, sortable-item modifier update is not triggered.

```hbs




```

**Screenshots**
![image](https://user-images.githubusercontent.com/30495731/233147136-7efe62eb-23f8-4727-8e5c-ac9840863891.png)
In the screenshot above you can see that 1) first has `.sortable-item` class that was applied initially, no sorting was done, and 2) second was reordered, `.sortable-class` is missing.

**Workaround**
Manually setting the `class="sortable-item"` solves the issue

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.