Hi,
I am using the Taskboard Angular library, specifically version 6.2.2, and I have a function that calculates the index of a task when it is dropped. The following code worked fine in v6.2.2:
onTaskDrop({ taskRecords, targetColumn, source, assignTask }: any): void {
const taskIndex = targetColumn.tasks.findIndex(task => task.id === taskRecords.id);
}
However, after upgrading to v6.3.1, the same code no longer gives the correct index. The findIndex function still returns an index, but it’s incorrect.
Details:
In v6.2.2, targetColumn.index worked as expected, and I could calculate the correct index for the task.
After upgrading to v6.3.1, the index returned by findIndex does not match the correct position of the task in targetColumn.tasks.
Are there any changes in the new version that could affect how targetColumn.index is handled? Or is there a new approach to correctly calculating the task index after the upgrade?
- Screen flickering on updates:
In addition, screen flickering occurs when the taskboard updates (for example, when tasks are moved or dropped). This issue wasn’t present in v6.2.2.
I would appreciate any insights or solutions.
Thanks!