getSelected method not working

Tags: #<Tag:0x00007f249df0caf8>

I am logging the output of const selected = hot.getSelected() || [];, but I always get an empty array, even if a cell is selected.

https://codepen.io/abalter/pen/RwQrXyM?editors=1111

Hi @ariel

I’ts better to put that method inside of one of our hooks, for example - afterSelectionEnd. Here’s an example:

https://jsfiddle.net/aszymanski/n2fg6vL7/

Thank you!