Badge details view closes when clicked outside of the box.
Merge pull request #488 from eldwin/details-click-outside-to-dismiss

Badge details view closes when clicked outside of the box.