@ikatec/nebula-react 1.4.1-beta.2 → 1.4.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -7768,11 +7768,12 @@ function KanbanBoard({
|
|
|
7768
7768
|
if (fromColumnId === targetColumnId) {
|
|
7769
7769
|
nextIndex = clampInsertIndex(overData.index, originalLength - 1);
|
|
7770
7770
|
} else {
|
|
7771
|
-
const
|
|
7772
|
-
|
|
7771
|
+
const overCardId = getCardId(overData.card);
|
|
7772
|
+
const projectedOverIndex = projectedTargetColumn?.cards.findIndex(
|
|
7773
|
+
(card) => getCardId(card) === overCardId
|
|
7773
7774
|
) ?? -1;
|
|
7774
|
-
const
|
|
7775
|
-
nextIndex = clampInsertIndex(
|
|
7775
|
+
const resolvedOverIndex = projectedOverIndex !== -1 ? projectedOverIndex : overData.index;
|
|
7776
|
+
nextIndex = clampInsertIndex(resolvedOverIndex, originalLength);
|
|
7776
7777
|
}
|
|
7777
7778
|
}
|
|
7778
7779
|
if (nextIndex === null) {
|
package/dist/index.mjs
CHANGED
|
@@ -7726,11 +7726,12 @@ function KanbanBoard({
|
|
|
7726
7726
|
if (fromColumnId === targetColumnId) {
|
|
7727
7727
|
nextIndex = clampInsertIndex(overData.index, originalLength - 1);
|
|
7728
7728
|
} else {
|
|
7729
|
-
const
|
|
7730
|
-
|
|
7729
|
+
const overCardId = getCardId(overData.card);
|
|
7730
|
+
const projectedOverIndex = projectedTargetColumn?.cards.findIndex(
|
|
7731
|
+
(card) => getCardId(card) === overCardId
|
|
7731
7732
|
) ?? -1;
|
|
7732
|
-
const
|
|
7733
|
-
nextIndex = clampInsertIndex(
|
|
7733
|
+
const resolvedOverIndex = projectedOverIndex !== -1 ? projectedOverIndex : overData.index;
|
|
7734
|
+
nextIndex = clampInsertIndex(resolvedOverIndex, originalLength);
|
|
7734
7735
|
}
|
|
7735
7736
|
}
|
|
7736
7737
|
if (nextIndex === null) {
|
package/package.json
CHANGED
|
Binary file
|