Submitting Patch to get working with Drupal 10

Created on 21 November 2023, about 1 year ago

Submitting these patch files from work done to make this work with Drupal 10.

Drupal no longer supplies jquery once function: https://drupalbook.org/blog/replace-jqueryonce-javascript-once-drupal-10]

$('.address-autocomplete-input', context).once('initiate-autocomplete').each(function(){

Now Becomes:

$(once('initiate-autocomplete', '.address-autocomplete-input', context)).each(function () {

Requires `core/once` including in module's .libraries.yml file
dependencies:
- core/jquery
- core/jquery.once
- core/drupal
- core/once

Also added ^10 to .info.yml file.

Not regression tested with D9 as D9 is EOL.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom taylormadeapps

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024