Loss of selection on clicking out of table

Tags: #<Tag:0x00007f8b2b10a708>

Is there a way to preserve table selection when clicking on something outside the table, e.g. button? The default behaviour is when you click button selected cells become unselected and getSelected() returns undefined value.

Hey @sb_st

yes, you can use outsideClickDeselects option and set it to false. Documentation https://handsontable.com/docs/7.0.0/Options.html#outsideClickDeselects

1 Like

Thanks, Aleksandra! Missed that option in documentation - been searching for “selection”. :relieved:

you’re welcome :slight_smile: