Drag and drop no longer works

Created on 2 July 2024, 5 months ago
Updated 3 July 2024, 5 months ago

Problem/Motivation

Drag and drop functionality results in javascript error jquery_ui_sortable enabled in drupal 10.2.5.

Error: The "drag_drop" plugin requires jQuery UI "sortable".

Proposed resolution

Change references sortable library module references from "core/jquery.ui.sortable" to "jquery_ui_sortable/sortable" (as per comment in With https://www.drupal.org/project/jquery_ui_sortable )

src/Element/SelectizeEntityAutocomplete.php:
$libraries = ['core/jquery.ui.sortable'];

src/Element/Selectize.php:
$complete_form['#attached']['library'][] = 'core/jquery.ui.sortable';

Need changing to:

src/Element/SelectizeEntityAutocomplete.php:
$libraries = ['jquery_ui_sortable/sortable'];

src/Element/Selectize.php:
$complete_form['#attached']['library'][] = 'jquery_ui_sortable/sortable';

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom mistergroove

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

Comments & Activities

Production build 0.71.5 2024