Issue if search in the inline list is used

I have one interesting issue, maybe change reqest, maybe questuion for workaround solution?

I am the tab for adding members to the working group. WG leader sees the list (accounts) and with the click the action is adding the new row in the WG list with the clicked account. Until now, now problem!

But the accounts list is rather long and I use therefore search bar for text search in account names list. Functions also ok, but after clicking the account in concern, there is no possibility to the tab itself, because of the fact that the search bar is still in action! Of course, if search content is erased, the tab appears again. Is it possible somehow to force this search clear in the action? Or some other way to solve this user-unfriendliness?