Closed mccp closed 2 months ago
I use jspreasheet to edit d3 charts data. I am running the project on a macbook pro.
I was unable to erase values from multiple cells at once (multiple selection). I tried first on my app :
onKeydown (e) { if (!this.spreadsheet) return if (e.code === 'Backspace') { const highlighted = this.spreadsheet.getHighlighted() if (highlighted.length && highlighted.length > 1) { highlighted.forEach((cell) => { this.spreadsheet.setValue(cell, '') }) } } },
But it resulted on an error cell.children[0] is undefined on the keydownControls function. Because no inputs were available on the table.
cell.children[0] is undefined
keydownControls
Add backspace key to the delete key condition
backspace
delete
Hi there, Any update on this ? It there anything missing to merge the PR ?
thanks
Context
I use jspreasheet to edit d3 charts data. I am running the project on a macbook pro.
Problem
I was unable to erase values from multiple cells at once (multiple selection). I tried first on my app :
But it resulted on an error
cell.children[0] is undefined
on thekeydownControls
function. Because no inputs were available on the table.Fix
Add
backspace
key to thedelete
key condition