Commit b290e97d authored by Frédéric Escudié's avatar Frédéric Escudié
Browse files

Fix bug with copy/paste in handsontable.

parent 7a0af4c7
......@@ -905,16 +905,15 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
// functions to handle templating from a new handsontable row
function isEmptyRow(instance, row) {
if ( row > instance.countRows()) {
if ( row < instance.countRows()-1 ) {
var rowData = instance.getData()[row];
for (var i = 0, ilen = rowData.length; i < ilen; i++) {
if (rowData[i] !== null) {
return false;
}
}
} else {
return true;
}
}
return true;
}
// add the default multiparameter help
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment