drupal 11 javascript error: cannot call methods on autocomplete prior to initialization; attempted to call method 'destroy'

Created on 14 June 2025, 10 days ago

Problem/Motivation

Javascript error. It doesn't seem to prevent anything actually working, but causes mink unit tests to fail.

Steps to reproduce

  1. Install drupal 11
  2. composer require drupal/webform:"6.3.x-dev"
  3. Enable webform and webform ui
  4. Click on build for the stock contact webform
  5. Click the edit button for "your name"
  6. Click save (don't just close it)
  7. Open the browser console
  8. Click the edit button for "your email"
  9. Look in the browser console
  10. Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'destroy'
  11. It doesn't have to be the stock contact webform. It seems to be any two fields on any form.

Proposed resolution

Unknown

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

6.3

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024