Remove dependency on jquery_ui_autocomplete in geolocation module

Created on 30 May 2025, 8 days ago

Problem/Motivation

- The geolocation module currently depends on the deprecated jquery_ui_autocomplete module. This dependency introduces maintenance and security concerns, as jQuery UI is no longer maintained and is being phased out from many Drupal installations.
- Removing this dependency will help modernize the codebase and allow for full removal of jQuery UI-related modules, reducing frontend bloat and improving maintainability.

Steps to reproduce

- Enable the geolocation module and configure a field using the Geolocation field type.
- Inspect the enabled modules and dependencies: you'll find jquery_ui_autocomplete is required.
- Attempting to uninstall jQuery UI-related modules fails due to this dependency.

Proposed resolution

- Refactor the geolocation module to eliminate the use of jquery_ui_autocomplete. This could be done with custom JavaScript that uses core autocomplete support.

Remaining tasks

Identify where jquery_ui_autocomplete is used in the geolocation module.
Refactor to use Drupal core autocomplete API.
Test existing geolocation field widgets.
Provide a patch.

Feature request
Status

Active

Version

3.14

Component

Javascript General / Frontend

Created by

🇪🇸Spain albefer

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

Comments & Activities

Production build 0.71.5 2024