On the first click you add the event listener, on the second the show class is toggled. If you're already executing a nanoflow, forget about the event listener. Also, have a look at classList.toggle()
Our team was able to figure it out. The nanoflow is being called when the page is loaded instead of when the element is clicked!