Popover removes focus in textarea

The textarea element, when entered, searches for items from the popover list. If the element from the popover is not found, then believe it closes and removes the focus in textarea. How do I keep the focus in textarea when closing the popover? I attach a link to the behavior of the focus - https://imgur.com/a/JVskedr. The video was taken from another user, with the same problem