Open and closing search not working as intended

I am using Instant search js and its working great. But I’ve encountered a strange error I can’t figure out. Not sure if it’s with Aloglia or my implementation.

At my website.
To reproduce:

  1. Click in the search box
  2. Click escape to close the box
  3. Click to open the box again. At this step it doesn’t open the search again. It should open the search dialogue every time you click in the area.