Bug with afterSelectionEnd

I am hitting an error when clicking a dropdown type cell. I only have two rows in the table so I’m not sure why it’s trying to select row 2. Anyway, the TD doesn’t exist so I get an error. Please add a null check here in the code. Thank you!

      afterSelectionEnd: (startRow, startCol) => {
        if (rootInstanceAriaTagsEnabled) {
          // **** TD can be null, setAttribute throws *******
          const TD = this.htEditor.getCell(startRow, startCol, true);
          setAttribute(TD, [A11Y_SELECTED()]);
          setAttribute(this.TEXTAREA, ...A11Y_ACTIVEDESCENDANT(TD.id));
        }
      }

Hi @anthony.agostino

There are too many variables missing for us to review the code. Please use this demo Handsontable example - JSFiddle - Code Playground to specify rootInstanceAriaTagsEnabled and the setAttribute method.

I believe the issue is reproducible if you have a small table such as two rows with a long list in an autocomplete.

Hi @anthony.agostino

Thank you for sharing. But I am afraid that this is not enogh for me to replicate the issue.

I would need have a steps with steps to replicate it or a screenshot of the bug and details bout the used options and OS/Browser setup.

Hi @anthony.agostino

Do we have nay updates here?