As you can see on the screenshot below, before/afterChange are called with different source
param when you are deleting contents of a cell (simply by pressing delete).
Is this by design or is this some kind of bug?
As you can see on the screenshot below, before/afterChange are called with different source
param when you are deleting contents of a cell (simply by pressing delete).
Is this by design or is this some kind of bug?
Hi @danijel.dukaric
As far as I’m concerned they should be the same.
I tested the same example and we get undefined
value in beforeChange
when we erase cell (using DELETE or BACKSPACE). The afterChange
hook treats the same action as an edit
.
here’s a related issue - we get undefined
type of change in beforeChange
hook when we toggle a checkbox.
Thanks for sharing @danijel.dukaric
I’ve added it here: https://github.com/handsontable/handsontable/issues/3539
For anyone interested in this subject please share the issue https://github.com/handsontable/handsontable/issues/3539