Clear button in search bar needs a double click

I’ve noticed that on my M2 MacBook, the clear button in the search bar requires a double click to actually clear the search query. Is this the intended behavior? Until now, I had assumed it was a bug, because a single click doesn’t do anything, even when the search bar is already highlighted.

Screenshot 2024-05-12 at 12.52.12 AM

Not only on M2’s also intel Mac’s act the same way.

Cheers