Hi Team,
I migrated the angular project from v14 to v17 and update the handsontable to v14.1.I am using loadData() with in afterChange() hook for copy paste scenario. When doing first time copy paste it is working and second time, paste the value in another cell in another column but that value is showing in table but not reflecting in data source. Hence paste value is not reflecting in data after first action.
ex:
afterChange: (changes, source) => {
if (source === ‘CopyPaste.paste’) {
const hot = this.dataExplorerGrid.HandsonTableInstance;
const myData = hot.getSourceData();
const convertedData = this.updateMydataWithPasteValue(myData, changes);
hot.loadData(convertedData);
}
}
when I removed the “hot.loadData(convertedData);” copy paste working fine and value reflecting in the data.
Please give me the solution. Advance thanks.