Posted 2 February 2022, 5:45 am EST
++ This issue appears only for one column not for the other.
Able to reproduce this issue in below link:
https://stackblitz.com/edit/angular-cys4vb?file=src/app/app.component.
It is happening bcz we have applied below code for one of the fix in which even though if we click on the column cell after 1/2 second the focus gets removed. This solution was give to use for one of our previous bug of focus shift.
code:
grid.hostElement.addEventListener(
‘mousedown’,
(e) => {
const ht = grid.hitTest(e);
if (ht.col === 2) {
// this.grid.select(ht.row, ht.col);
e.target.parentElement.focus();
e.target.parentElement.click();
e.target.focus();
}
},
true
);
For above code of mousedown event cant we skip the header(mainly filter icon) part and only the click will apply on cell dropdown click?