Search bar cancellation

Hello team

If you type something into the search bar, click and drag over text and lift the mouse while the mouse is outside of the search bar, it closes the search bar.

It would be better if you could easily select what you have already typed into the search bar using the mouse.