Badge details view closes when clicked outside of the box.