Click event issue

Tags: #<Tag:0x00007efc625d5c68>

Hello,

I have included checkboxes in the row headers of the grid and tried different ways of handling the click event on them.

I ended up with using “onclick” event directly in the checkbox html, but sometimes (especially in IE) it gets executed multiple times, and I traced it to this function in Handsontable code:
var Interval = function Interval(func, delay) {
var $__6 = this;
this.timer = null;
this.func = func;
this.delay = parseDelay(delay);
this.stopped = true;
this._then = null;
this._callback = (function() {
return $__6.__callback();
});
};

Is there any better way to listen to the click event and disable the default Handsontable actions? (event.stopPropagation() does not do the job.)

Thank you!

Hi @costin.ochescu

Handsontable provides few mouse events: https://docs.handsontable.com/0.29.0/Hooks.html#event:beforeOnCellMouseDown
and key events:
https://docs.handsontable.com/0.29.0/Hooks.html#event:beforeKeyDown

it all depends on what exactly you would like to do.