Click to hide not giving a clean result

I’ve got a click to show for the services list then when the user moves the cursor off the green container the button should appear back on. The problem is the reappearance of the button on the first click before it quickly goes off