Implement hide-on-background-click for collection context bar