@rowsncolumns/grid
Advanced tools
Comparing version 6.2.15 to 6.2.16
@@ -885,3 +885,3 @@ "use strict"; | ||
forceRender(); | ||
}, [selectionTopBound, selectionLeftBound, rowCount, columnCount]); | ||
}, [selectionTopBound, selectionLeftBound, rowCount, columnCount, selections]); | ||
/** | ||
@@ -931,2 +931,9 @@ * Ond drag move | ||
}); | ||
/* Set internal property */ | ||
if (draggedSelectionIndex.current === selections.length - 1) { | ||
selectionEnd.current = { | ||
rowIndex: sel.bounds.bottom, | ||
columnIndex: sel.bounds.right, | ||
}; | ||
} | ||
} | ||
@@ -933,0 +940,0 @@ } |
{ | ||
"name": "@rowsncolumns/grid", | ||
"description": "Declarative React Canvas Grid primitive for Data table, Pivot table, Excel Worksheets", | ||
"version": "6.2.15", | ||
"version": "6.2.16", | ||
"main": "dist/index.js", | ||
@@ -46,3 +46,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "57a8b89bef2a884dc3fbefbd7f649b728fade4c3" | ||
"gitHead": "12905e7ee061f567ffa1045f1289f4143fe8ab18" | ||
} |
@@ -1317,3 +1317,3 @@ import React, { | ||
}, | ||
[selectionTopBound, selectionLeftBound, rowCount, columnCount] | ||
[selectionTopBound, selectionLeftBound, rowCount, columnCount, selections] | ||
); | ||
@@ -1364,3 +1364,3 @@ | ||
/* Select the first cell in the selection area */ | ||
const coords = { rowIndex: sel.bounds.top, columnIndex: sel.bounds.left } | ||
const coords = { rowIndex: sel.bounds.top, columnIndex: sel.bounds.left }; | ||
setActiveCell(coords); | ||
@@ -1379,3 +1379,11 @@ /* Set internal property */ | ||
}); | ||
} | ||
/* Set internal property */ | ||
if (draggedSelectionIndex.current === selections.length - 1) { | ||
selectionEnd.current = { | ||
rowIndex: sel.bounds.bottom, | ||
columnIndex: sel.bounds.right, | ||
}; | ||
} | ||
} | ||
} | ||
@@ -1382,0 +1390,0 @@ |
Sorry, the diff of this file is not supported yet
726415
16092