`beforeChange` Hook Firing with Empty Changes Array

Tags: #<Tag:0x00007efc655ce758> #<Tag:0x00007efc655ce578>

Hi Handsontable Team,

I’ve noticed a behavior change in the beforeChange hook. In previous versions, the hook wouldn’t trigger if the changes array was empty. However, in the latest version, it fires even when the array is empty.

Example code:

 Handsontable.hooks.add('beforeChange', function (changes) {console.log(changes); });

Can you explain if this change is due to any new Handsontable updates? Is it intentional, or part of a bug fix/optimization?

Thanks!

Hi @jithin.raj449

This change regarding this hook was introduced in v. 13.0 due to some issues with proper formulas calculations. The whole context of this change can be found in this PR: https://github.com/handsontable/handsontable/issues/10257