ce
ce copied to clipboard
Clear multiple cells results in an error
Trying to clear multiple as mentioned in an issue earlier on
const handleKeydown = (e: KeyboardEvent) => {
if (spreadsheet) {
if (spreadsheet.edition) {
if (e.code === 'Backspace') {
spreadsheet.setValue(spreadsheet.getHighlighted(), '', false);
e.stopPropagation();
}
}
}
}
The delete works fine but onBlur I am getting the error below. I am using a fixed column definition set in options
TypeError: undefined is not an object (evaluating 'cell.children[0].value')
Any insight you can give would be greatly appreciated
Are you using any custom editor?
I don't know if any of you still have this issue. But I have managed to fix it. It is because only delete key is supported. You need to add the backspace key to the delete condition.
Interesting, sorry I forgot to respond here @hodeware.. It is a small part of our product so I turned it off bulk delete and then it got left in the dust.. Thanks for looking @mccp, will look to add this in if the PR gets approved..
I was running this on an MBP as well