Group Focus does not close

I have attached a Group Focus onto an element, eg. Element A. After running an action to show the Group Focus on clicking Element A, I am unable to close the Group Focus even when I clicked anywhere outside the Group Focus. By the way, the group focus and Element A is created in a reusable group header that I have placed on the index page.

I also separately tried this directly on a standard page. The same problem appears.

Have I done something incorrect? Why does the Group Focus not automatically hide when I click anywhere else on the screen?

It somehow works now. No reason as to why it suddenly resolves itself.