Steps to reproduce:
Search for a three or more word query such as "test query hello world"
Click on a middle word (query or hello)
Note that the cursor is placed at the end of the line, regardless of where clicking
Click outside the query box then back into the middle
Note that this time the cursor is placed in the position of the click
Expected behavior:
Cursor should be placed in the position of click even on first click
Often when doing this I'm adding quotes around a word or phrase that I didn't originally quote, putting the cursor at the end of the lines slows this process down
System info:
Firefox 97.0 Ubuntu x86-64
United States US-EAST