Sitecore / XM-Cloud-Introduction

A repository containing the code for the MVP & SUGCON Sites, powered by XM Cloud
47 stars 47 forks source link

Browser back button is not clearing text in search box #431

Open gauravpansari1991 opened 4 months ago

gauravpansari1991 commented 4 months ago

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
sc-ivanlieckens commented 3 months ago

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