Clear selection when clicking outside treetable

I am trying to deselect all the items from my treetable when the user clicks outside of the table. I can’t seem to find an event in the documentation that I can use for this. Clicking a different item deselects the first item, but this way, there is always one item selected. I don’t want to add a button to deselect all items.

Clicking a different item deselects the first item

You can try to add multiselect:touch to a config of a datatable. As result, clicking second time on selected item will deselect it.