ce icon indicating copy to clipboard operation
ce copied to clipboard

show error delete when delete more than one rows,

Open TsePakKwan opened this issue 7 years ago • 1 comments

when I selected more than one rows then right click, click delete this row. if I selected rows = total rows e.g have 2 rows and I selected 2 rows right click delete row, then will show error as below jquery.jexcel.js:2323 Uncaught TypeError: Cannot read property 'split' of undefined at r.fn.init.updateSelection (jquery.jexcel.js:2323) at r.fn.init.$.fn.jexcel (jquery.jexcel.js:5345) at r.fn.init.deleteRow (jquery.jexcel.js:3534) at r.fn.init.$.fn.jexcel (jquery.jexcel.js:5345) at HTMLAnchorElement.onclick (a-custom-table-design:1)

I have saw code jquery.jexcel.js. On line 3500 // Can't remove the last row if (options.data.length > 1) {

If my understanding is correct, this should be changed to

// Can't remove the last row if (options.data.length > numOfRows) {

TsePakKwan avatar Jun 10 '19 03:06 TsePakKwan

that has been fixed on the most recent versions.

pphod avatar Oct 27 '20 12:10 pphod