I am using Handsontable(Wrapper for Angular) with angular version 5 project. The html has defined afterOnCellMouseDown event inside hot-table element
[afterOnCellMouseDown]="afterOnCellMouseDownCallBack"
Then in the angular component I have the function defined,
afterOnCellMouseDownCallBack(event, coords, TD) {
if(this==null) {
console.log("this value is null here afterOnCellMouseDownCallBack")
}
let checkBoxChecked = !event.target.checked;
}
Basically I have a checkbox at header level. And when I click the checkbox, things are not working as expected.
I am having two issues:
1- As shown above, in afterOnCellMouseDownCallBack , the value of this reference is null.
2-The statement let checkBoxChecked = !event.target.checked;
produces following error.
Uncaught TypeError: Cannot read property ‘checked’ of undefined
Thanks