XF 2.0 How to remove previous search terms from in front of the search bar dropdown

entelechy

Active member
When clicking on the search bar, the dropdown is obscured by past search terms. How can I remove these previous terms so only the search forms show?
 
Thanks, which template/position should autocomplete='off' be added to? From what I can tell, "search_form", but Im not sure exactly where.
 
Last edited:
Ok found it, but I've tried adding autocomplete="off" to both textboxes:


<xf:textbox name="keywords"
class="js-uix_syncValue"
data-uixsync="search"
placeholder="{{ phrase('search...') }}"
aria-label="{{ phrase('search') }}"
data-menu-autofocus="true"
autocomplete="off" />


<xf:else />
<xf:textbox name="keywords"
class="js-uix_syncValue"
data-uixsync="search"
placeholder="{{ phrase('search...') }}"
aria-label="{{ phrase('search') }}"
data-menu-autofocus="true"
autocomplete="off" />

As well as contraints:

<xf:select name="constraints"
class="js-quickSearch-constraint"
aria-label="{{ phrase('search_within') }}"
autocomplete="off" >

And even the outer div:

<div class="menu-row" autocomplete="off">

But even after refreshing multiple times and cache clearing it's still showing the autocomplete.
 
Yeah when I add "echo "does this print?";" to the search bar code this happens: (attachment)
 

Attachments

  • does.webp
    does.webp
    3.7 KB · Views: 9
Top Bottom