Got focus and Lost focus broken?

I want to create a search component. It consists of one input (text field) and search results as dropdown (dynamic panel). Now I have made logic on the text field, when Got focus, dynamic panel shows, when on Lost focus, dynamic panel hides. But when text field gets focus, the dynamic panel falls in the loop and it rapidly open and closes infinity times. Some time ago I have made the same thing and it worked. Is there some bug or am I doing something wrong?

This is a known bug.

The current workaround is to ungroup the elements involved in the get focus/lost focus interactions. This should resolve the rapid looping.