entelechy Active member Aug 6, 2018 #1 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?
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?
S S Thomas Well-known member Aug 6, 2018 #2 Add autocomplete='off' to the search field input tag. Or disable autocomplete in your browser.
entelechy Active member Aug 6, 2018 #3 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: Aug 6, 2018
Thanks, which template/position should autocomplete='off' be added to? From what I can tell, "search_form", but Im not sure exactly where.
S S Thomas Well-known member Aug 6, 2018 #4 In PAGE_CONTAINER. Search for <!--[XF:search_menu:above_input]--> There are 2 textboxes.
entelechy Active member Aug 7, 2018 #5 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.
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.
entelechy Active member Aug 7, 2018 #7 Yeah when I add "echo "does this print?";" to the search bar code this happens: (attachment) Attachments does.webp 3.7 KB · Views: 10
S S Thomas Well-known member Aug 7, 2018 #8 No clue then. It works for me on the default style in Firefox.