Close the search panel when clicking on the body.