Not working for Anonymous user on Bootstrap Theme

Created on 25 October 2021, about 3 years ago
Updated 5 June 2023, over 1 year ago

Problem/Motivation

I use a form with exposed search filter and search autocomplete when the user is anonymous not working:

Steps to reproduce

My form input logged:
<input title="Search keywords" placeholder="" data-drupal-selector="edit-keys" class="form-text form-control form-autocomplete ui-autocomplete-input" type="text" id="edit-keys" name="keys" value="" size="15" maxlength="128" data-id="autcomplete_car" autocomplete="off">

My form input unlogged:
<input title="Search keywords" placeholder="" data-drupal-selector="edit-keys" class="form-text form-control" type="text" id="edit-keys" name="keys" value="" size="15" maxlength="128">

Proposed resolution

In jquery.autocomplete.js replace:

Drupal.behaviors.autocomplete

with

Drupal.behaviors.search_autocomplete

AND
Drupal.autocomplete = autocomplete;
with
Drupal.search_autocomplete = autocomplete;

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Miscellaneous

Created by

🇮🇹Italy antonio.cangemi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024