I am logging the output of const selected = hot.getSelected() || [];
, but I always get an empty array, even if a cell is selected.
getSelected method not working
Hi @ariel
I’ts better to put that method inside of one of our hooks, for example - afterSelectionEnd. Here’s an example:
Thank you!