Text remains in search bar after clicking on a result

After searching for an application or employee, the search query remains in the search bar after clicking on the result. This ticket aims to fix that problem.