On SO, when typing in the "Type to find users" text area, the users auto filter. Some times after a short period (< 30 seconds), it resets back to the unfiltered view.
(Using Google Chrome under Win7)
On SO, when typing in the "Type to find users" text area, the users auto filter. Some times after a short period (< 30 seconds), it resets back to the unfiltered view.
(Using Google Chrome under Win7)
I can reproduce this as well (FireFox 3.6.4, Vista), but my steps are a little different than Andy's.
If I type a single letter, the search takes several seconds (around 10+), if I type two more characters before the search finishes, it will display the updated results, however when the initial query finally finishes, it resets the display.
My XHR tab on Firebug looks like this:
alt text http://img149.imageshack.us/img149/3568/26973481.jpg
Like ccomet said in the comments, a single letter isn't enough to do a search, but for whatever reason, the request is still sent to the server and takes an incredibly long time to finish. It will overwrite any other searches that were completed earlier.
I just tested it in IE and Firefox, so I can confirm this. I tried in Chrome but it didn't happen. It seems to only repro if the results aren't coming from the browser's cache (so type something you haven't typed before). The results appear and then are replaced by the top user list very shortly afterwards, it was 5-10 seconds each time for me.
The obvious work around for the time being appears to be to just re-enter the characters in the filter box.
I think I've narrowed down the repro now and it doesn't seem as bad a bug as I first thought.
It appears as though the timer that resets the results isn't cancelled when a new request is made.
Hmm, good catch.. we don't want to filter until the string is at least 2 chars long.