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

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

未关闭
#514 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
299
派生
159
平均合并
4 天 6 小时
30 天内合并 PR
4

描述

**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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。