force icon indicating copy to clipboard operation
force copied to clipboard

Search results are based on last autocomplete result rather than actual query input

Open joeyAghion opened this issue 7 years ago • 3 comments

When I type into the search field and hit return, I frequently see results for some prefix of what I actually entered. My initial sense is that navigation to the search results page uses the completed autocomplete query rather than what I've actually typed into the field. If I type at a good speed, I'll end up hitting return before the final autocomplete response. (When I type more slowly and wait for the autocomplete response, the results match my input.)

joeyAghion avatar Mar 17 '17 19:03 joeyAghion

I can't really reproduce this, typing 'picasso' at differing rates of speed and hitting 'Enter' seem to work fine.

Also looking at the code, it's just a form submission so I'm not sure how/why the autocompletes would mess with that. Feel free to reopen!

mzikherman avatar May 01 '17 14:05 mzikherman

Maybe because it's cached?

You can see what I'm talking about in the final search here:

2017-05-01_fast_artsy_search2

joeyAghion avatar May 01 '17 15:05 joeyAghion

Still can't repro that locally even following along to your gif!

mzikherman avatar May 01 '17 15:05 mzikherman