|
@@ -703,7 +703,7 @@ $(document).ready(function() {
|
|
|
const sheet = posSpread.getActiveSheet();
|
|
|
const sel = sheet.getSelections()[0];
|
|
|
const curRow = sel ? sel.row : 0;
|
|
|
- let next = _.find(resultArr, function (d) {
|
|
|
+ let next = _.findLast(resultArr, function (d) {
|
|
|
return d.index < curRow;
|
|
|
});
|
|
|
if (!next) next = resultArr[resultArr.length - 1];
|