Fix duplication more than one cell at once for handsontables [SCI-9958] (#7010)

This commit is contained in:
ajugo 2024-01-31 11:10:58 +01:00 committed by GitHub
parent 9d48cbbb86
commit ebe2afc2e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,12 +199,12 @@
var beforeAutofillInsidePopulate = function(index, direction, data, deltas, iterators, selected) {
var instance = this;
var r = index.row,
c = index.col,
var rlength = data.length, // rows
clength = data[0].length, //cols
r = index.row % rlength,
c = index.col % clength,
value = data[r][c],
delta = 0,
rlength = data.length, // rows
clength = data ? data[0].length : 0; //cols
delta = 0;
if (value[0] === '=') { // formula