Dismiss tooltip when clicked outside element

Fixes #1