stract icon indicating copy to clipboard operation
stract copied to clipboard

Bug: Search term & optic disappear when using back button

Open rrmn opened this issue 1 year ago • 2 comments

  1. Search for something (e.g. "Land Cruiser 80)
  2. Optional: add optic
  3. Click on first result
  4. Return to search results
  5. Search term (& optic) has (have) disappeared

edit: iOS 17 + Firefox

rrmn avatar Feb 05 '24 06:02 rrmn

Interesting. It works for me in firefox and chrome, but I am able to reproduce this bug in safari. Thanks for the report!

mikkeldenker avatar Feb 05 '24 11:02 mikkeldenker

This seems to be related to the autocomplete="off" on the search field. I've seen indication that this can effect the re-filling of the forms on selecting the Previous Page button. On Safari, when I swapped off for on it seemed to properly refill the search field. I inspected all the bfcache too and that looked right.

Going to keep digging - DuckDuckGo uses the autocomplete="off" in it's search bar but doesn't have the same issue so it's definitely fixable. I also couldn't recreate the issues with the optic - that seemed to refill out of the box not matter what.

lamemakes avatar May 17 '24 14:05 lamemakes