XM-Cloud-Introduction icon indicating copy to clipboard operation
XM-Cloud-Introduction copied to clipboard

Browser back button is not clearing text in search box

Open gauravpansari1991 opened this issue 1 year ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://mvp.sitecore.com/en/Directory
  2. Search 'Gaurav' in the search box, it will show the result
  3. Now click the browser back button, it removes the search query string but the search text is still showing in the Search box

Expected behavior The search box should not have any search text

Screenshots

image image

gauravpansari1991 avatar Mar 27 '24 07:03 gauravpansari1991

@gauravpansari1991 Seems we need to add autocomplete="off" to fix this one, this is default browser behavior though

sc-ivanlieckens avatar Apr 09 '24 07:04 sc-ivanlieckens