fix #1736: hide PopoverButton when clicking elsewhere on the page
Created by: lguychard
Previously PopoverButton
stayed open even when clicking elsewhere on the page. This was an issue on the webapp (#1736 (closed)), but also in the browser extension in cases like this: