Hello,
I have recently been migrating from Polymer 1.7 to Polymer 2.0 and have found that a procedure for obtaining the column index of a clicked cell in vaadin-grid no longer works. I am mixing into the component vaadin.elements.grid.CellClickBehavior.
Adding this listener in the ready() function:
this.$.restores.addEventListener(‘cell-focus’, (e) => { e.stopPropagation(); this.clickedCell = e.target; });
and then accessing that property when the active element changes (after checking that this.clickedCell is defined):
if (this.clickedCell.cellIndex == 2) { … }
no longer works because cellIndex is undefined.
Do you have any suggestion as to what to do to achieve this now?
I have attached the full code of the component in question.
Thanks, Al
39401.html (14.9 KB)